Modify elements 3. Choose Use Associated Image or, alternatively, choose Select an Image and click ... to open the file browser. To enable the display of associated images at the diagram level, set the property General::Graphics::EnableImageView to Checked . The default value is Cleared . When using an associated image in a diagram, there are a number of ways the image can be displayed: Љ Image Only displays the image instead of the regular graphic representation. Љ Structured displays the image within the regular graphic representation.
Љ Compartment displays the image within a compartment together with the other items that are displayed in compartments, for example, attributes and operations. To select one of these layout options: 1. In the Display Options window, click Advanced . 2. When the new window opens, select one of the layouts. 3. Click OK . To set the image view layout at the diagram level, select the appropriate value for the property General::Graphics::ImageViewLayou t . The default value is ImageOnly .
Restoring image size, proportions When Image Only has been selected as the image layout option, the context menu displayed when right-clicking the image contains two additional options under the menu item Image View: Restore Initial Size and Restore Initial Proportions . Modifying, replacing, and removing associated image files Once an image has been associated with a model element, a menu item called Associated Image will be available in the context menu that is displayed when the element is selected in the browser. This item contains the following options: Љ Open Image allows you to view the image in an external viewer. The application that is opened is determined by two properties.
If the property General::Model::ImageEditor is set to the value AssociatedApplication , the default application for this type of file will be launched. However, if this property is set to ExternalImageEditor , the application launched will be the application specified with the property General::Model::ExternalImageEditorCommand . The value of this property should be the command-line for launching the relevant application. Љ Replace Image displays a file browser, allowing you to select a new image file to associate with the model element, replacing the current associated image. Rational Rhapsody 337