Class Image
This class represents an image with additional configuration capabilities (e.g. optional focal point). Furthermore it provides access to meta data of the referenced image file.
See Also:
| Property | Description |
|---|---|
file: MediaFile (read-only) | Returns the image media file from the current site's library. |
focalPoint: FocalPoint (read-only) | Returns the focal point of the image. |
metaData: ImageMetaData (read-only) | Returns the meta data of the physical image file. |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| getFile() | Returns the image media file from the current site's library. |
| getFocalPoint() | Returns the focal point of the image. |
| getMetaData() | Returns the meta data of the physical image file. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- file: MediaFile
(read-only) Returns the image media file from the current site's library.
- focalPoint: FocalPoint
(read-only) Returns the focal point of the image.
- metaData: ImageMetaData
(read-only) Returns the meta data of the physical image file. This meta data is obtained when the respective component attribute was saved from Page Designer, i.e. the underlying image is not queried for the meta data every time getMetaData() is called but only on store of the related component attribute.
- getFile(): MediaFile
Returns the image media file from the current site's library.
Returns:
- the image media file, or null if not found
- getFocalPoint(): FocalPoint
Returns the focal point of the image.
Returns:
- the focal point, or null if not found
- getMetaData(): ImageMetaData
Returns the meta data of the physical image file. This meta data is obtained when the respective component attribute was saved from Page Designer, i.e. the underlying image is not queried for the meta data every time getMetaData() is called but only on store of the related component attribute.
Returns:
- the meta data of the image, or null if no meta data was provided with the respective component attribute