Creating an image resource
About this task
You can create a resource library of images to use throughout your application. Image resources let you maintain the image in only one location. If there are any changes to the image, changing and refreshing the source file distributes the changes wherever the image is referenced.
To create a shared image resource
Procedure
- Expand Resources in the Applications Navigator.
- Select Images from the list of Resources.
- Click "New Image."
- Select GIF, BMP or JPG in the "Files of type" list.
- Select one or more graphic files you want to include as image resources.
- Click "Open." The graphic files you selected are added to the list of available image resources.
Results
You can now select this image from the Controls palette where you can drag-and-drop it on, for example, an XPage when creating a page design
Adding an image from the Control Palette
About this task
Use the following to import an image from the Control palette:
Procedure
- Drag an Image control from the Core Controls section of the palette onto the editor. You are presented with the Select Image window.
- Click the Add... button.
- In the Open window, navigate to the directory where the image file that you wish to import resides.
- Click on the filename of the image you wish to import.
- Click Open to add the image to the list of available image resources.
Results
The imported image also displays in the Resources-Images section in the Applications Navigator. It is now available from the image list every time you dran and drop an image from the Core Controls section of the palette.
To set image resource properties
Procedure
Basics tab
About this task
This tab contains information on the selected image and let you set basic properties and advanced properties at the image file level, for example, name, alias, comment and page placement and display options. You can also preview the image from this tab. You can also specify:
- Images across and Images down (if you are creating image sets).
- Colorize grays - lets an image blend with the user's system colors.
- Needs refresh - adds the refresh symbol next to the image resource name in the list of images and targets it as an image to be refreshed.
- Web compatible - appears if you are creating a horizontal image set (Images down) and want the images to work on the Web.
Web Properties tab
About this task
This tab contains options for setting properties on how images are handled in Web applications. This includes the following fields:
- Read Only - Checking this causes the selected design element(s) to be read-only on the Web.
- MIME type (for file resources only) - The MIME type of the file resource for Web clients. The Content-Type header of the HTTP response is set to this value. Domino® Designer fills in this field if it recognizes the extension of the file resource (for example, a GIF image file or an EXE application file).
Info tab
Procedure
Design tab
About this task
On the Design tab of the Image Resource Properties box, select any of the following design options:
Field or box |
Description |
---|---|
Inherit from the design template |
Type the name of a template from which the design element might inherit changes. |
Prohibit design refresh or replace to modify |
Select this to prevent this design element from being modified during a refresh or replace. If you use a template to refresh or replace the database design, to ensure that this option takes effect, select this option as well as the option "Propagate this prohibition of design change" in the design properties of the template. |
Propagate this prohibition of design change |
Select this so that if a database inherits this design element, the "Prohibit design refresh or Replace to modify" box option will be inherited also, and it will still be selected. |
Do not show this design element in menus of Notes® R4 or later clients |
Select to hide the design element from Web users. |
Hide design elements from (Web Browsers) |
Select to hide the design element from Web users. |
Hide design elements from (Notes® R4.6 or later clients) |
Select to hide the design element from Notes® Release 4.6 or later clients. |
Fields tab
Procedure
To colorize grays
Procedure
To insert an image resource
Procedure
- Open a form, document, or page.
- Place the cursor where you want to add the image.
- Choose Create - Insert Resource.
- Under Databases, select the database from which you want to insert the image resource.
- Under "Resource type," select Images.
- Under "Additional resources," select an image to insert from the list of images.
- Click OK to display the image in the form, document, or page.
Results
To insert an image resource from a file in the current database
About this task
You can insert an image resource from a file that you created and stored in your current database.
Procedure
- Open a form, document, or page.
- Place the cursor where you want to add the image.
- Choose Create - Image Resource.
- In the "Insert Image Resource" dialog box, make sure that the Database is set to -Current database-.
- Click "New."
Browse your directory to include an image resource in the current database.
- After you have selected a file, in the Insert Image Resource
dialog box, click OK.
The image resource appears in the form, document, or page.
To rename an image resource
About this task
Perform the following steps to rename an image resource that you created.
Procedure
- Open a form, document, or page.
- Choose Create - Image Resource.
- In the Insert Image Resource box, select the image resource that you want to rename.
- Click Rename.
- Type a new image resource name. You should also specify
an alias if there is a chance that the image resource could be renamed.
To specify an alias, after the image resource name, type a vertical
bar (|) followed by the alias name. For example, ImageName|ImageAlias.
The new name appears in the image resource list.
To delete an image resource
About this task
Perform the following steps to delete an image resource that you created.
Procedure
- Open a form, document, or page.
- Choose Create - Image Resource.
- In the Insert Image Resource box, select the image resource that you want to delete.
- Click Delete. The image resource is deleted from the image resource list and from the database.
To reference an image resource with HTML
About this task
You can use Pass-thru HTML to reference image resources within a database.
Procedure
- Enter the HTML <img src> tag using the name of the
image resource. For example:
<img src="r5-banner.gif">
- Select text and choose Text - Pass-thru HTML.
- Optional: Use other HTML formatting tags to position the image.
To make design changes to an image resource
Procedure
Exporting an image resource
Procedure
- Select the image or images you want to redesign.
- Choose Resource - Export.
- Select the directory you want to copy the image to.
- Click Open.
Distributing design changes for an image
About this task
When you redesign an image resource, you can distribute the changes wherever the image appears in the database.
Procedure
- In the list of images in Domino® Designer, select the images that have changed and click Refresh.
- In the Open dialog box, select the images from your directory.
- Click "Open."
Results
Designer automatically updates the image in all of the places it is referenced in the application.
Creating a custom letterhead
About this task
You can select a graphic to appear as the mail header for all employee mail. Simply add your company's logo to the image resources of your organizations' mail templates. Only employees who have access to the mail template will see the letterhead; other recipients, such as those outside your company or with an Internet mail account, will receive a standard letterhead.
For details on creating a custom letterhead, see "Creating a custom letterhead" on the Developer Domain.