This functionality is only available for certain module packages.

You are here: EEC > BASE > MediaSource > Image objects

Image objects

The MediaSource library allows for image objects to be created. A MediaSource image object manages an image and enables the internalization of the image in the model. This neutralizes the reference to objects in the file system, and the backing up, restoration and replacement of models are simplified. The MediaSource image object is upstream from the actual image and enables a uniform use in EEC in analogy to other model objects. To access the image thus stored, the image object has in the editor a preview page, as well as two methods for the formula language (see Methods for image objects and Methods for image registers).

The imported and / or referenced image is loaded from the image object using the image method. An inactive image can be represented using the method disabledImage. This way, the image is changed in color prior to loading. By converting the colors to grayscale, the graphical effect is one of an inactive button. The imported image itself is not modified by these changes in color and contrast.

To insert a new image in the library, select New > Media sources > Image in the context menu.

If the model variable MediaSources – Manage Resources has the value false:

On the Attributes page of the editor for the image (see figure above), use [Import], or in the Resource path field [..] to (1) create a reference to the external resource at first. Then use the Internalize button (2) to internalize the image in the library (also see Resources and their management).

If the model variable MediaSources – Internalize Resources has the value true:

On the Attributes page of the editor for the image, use [Import], or in the Resource path field, [..] to internalize the image directly in the library.

An internalized image can be converted to a reference to an external file by way of [Externalize]. Use [Internalize] to convert a reference to an external image to an internalized image.

An internalized image can be viewed on the Preview page of the editor.