Go to the source code of this file.
Adds a reference to an image object.
- Parameters
-
[in] | image | The image object. |
- Returns
-
Creates a new image object from an image file on disk.
- Parameters
-
[out] | image | The image object. |
[in] | bounds | The bounding box for the image. |
[in] | file_path | The file path to the image on disk. |
- Returns
-
Converts from a LOEntityRef to a LOImageRef. This is essentially a downcast operation so the given LOEntityRef must be convertible to a LOImageRef.
- Parameters
-
[in] | entity | The entity object. |
- Returns
- The converted LOImageRef if the downcast operation succeeds
- If not, the returned reference will be invalid
Returns any clip mask assigned to the image.
- Parameters
-
[in] | image | The image object. |
[out] | clip_mask | The clip mask of the image. |
- Returns
-
Gets an image object's image representation.
- Parameters
-
[in] | image | The image object. |
[out] | imagerep | The image representation object. |
- Returns
-
Releases an image object. The object will be invalidated if releasing the last reference.
- Parameters
-
[in] | image | The image object. |
- Returns
-
Sets the clip mask of the image. A clip mask defines a region of the entity that is visible. This allows you to crop with arbitrary shapes. This operation will replace any clip mask that is already assigned to this image. The entity being used must not be already part of a document or group. The clip mask entity must be either a rectangle, ellipse or a path.
- Note
- Starting in LayOut 2020.1, API 5.1, clip_mask may be SU_INVALID, which will remove the existing clip mask, if any.
- Since
- LayOut 2017, API 2.0
- Parameters
-
[in] | model | The image object. |
[in] | clip_mask | The new clip mask for the image. |
- Returns
-
Converts from a LOImageRef to a LOEntityRef. This is essentially an upcast operation.
- Parameters
-
[in] | image | The image object. |
- Returns
- The converted LOEntityRef if image is a valid object
- If not, the returned reference will be invalid