Prev | Next |
Image Assets
Image Assets are model elements that are used to store images in the model.
To create an Image Asset element, simply drag an 'Image Asset' icon onto a diagram from the 'Artifact' page of the Diagram Toolbox. A prompt displays to choose an image file.
Alternatively, you can drag an image file from your file system straight onto a diagram. Enterprise Architect creates a new Image Asset Artifact, then stores the image from the file in the Artifact, as the 'owned image'.
The Image Asset images can then be used as alternative images in place of the standard UML notation for elements on diagrams. They can also be used in documentation by inserting hyperlinks to the Image Asset element. When a report is generated, the hyperlinked Image Asset element is rendered using its 'owned image'.
Access
Diagram Toolbox |
Select the 'Artifacts' page | select 'Image Asset' | click on the diagram, or Drag an 'Image Asset' Artifact from the toolbox onto a diagram. |
Other |
Select an image file in your file system (say, on the desktop) then drag and drop it onto a diagram in Enterprise Architect. A context menu will display; select the option 'Image Asset'. |
Using Image Assets in Documentation
Step |
Action |
See also |
---|---|---|
1 |
While editing the Notes of an element, or editing a Linked Document, and if you have located the Image Asset in the Browser window, you can drag the Image Asset element into the document. The 'Document Drop Action' dialog displays with the 'Drop As' field set to 'Insert as Hyperlink(s)'. Click on the to insert the element as a hyperlink that will be rendered as the image. If you need to search for the Image Asset, go to step 2. |
|
2 |
Right-click in the document and choose 'Create | Hyperlink'. The 'Hyperlink Details' dialog displays. Select 'Element Image' from the drop down list. The 'Select Element' dialog displays, showing only Image Assets. |
|
3 |
Browse through the model and select the required Image Asset. |
|
4 |
Click on the , and on the second OK button. |
Select an Image Asset as an element's Alternative Image
You can use one of two methods for adding an Image Asset to an element as an alternative image.
Step |
Action |
See also |
---|---|---|
1 |
|
|
2 |
|
Viewing the Image
When placed on a diagram, the Image Asset element can be displayed either as a simple artifact element, or as the owned image. The display can be toggled from one to the other, by right-clicking the element and selecting 'Show Owned Image' from the context menu.
When the Image Asset is displayed on a diagram as a UML Artifact element, double-clicking it will launch the default external viewer for images and load the Artifact's owned image.
on a hyperlink to an Image Asset displays the image in the default external viewer.
When hovering over the hyperlink the standard hyperlink element buttons will also be displayed, allowing you to display the 'Properties' dialog, find the element in diagrams or find the element in the Browser window.
Properties
To display the Properties window for the Image Asset:
- Select the element and press , or
- If the Image Asset is displayed on a diagram as the image, double-click on it, or
- If the Image Asset is referenced by a hyperlink, hover the mouse over the hyperlink to display a floating toolbar and click on the