WatermarkableImage class
WatermarkableImage class
Represents an image inside a document.
Inheritance: WatermarkableImage →
ContentPart
The WatermarkableImage type exposes the following members:
Properties
| Property | Description |
|---|---|
| height | Gets the height of this WatermarkableImage in pixels. |
| width | Gets the width of this WatermarkableImage in pixels. |
Methods
| Method | Description |
|---|---|
| find_images | Finds images according to the specified search criteria.
The search is conducted in the objects specified in Watermarker.searchable_objects. |
| find_images | Finds all images in the content.
The search is conducted in the objects specified in Watermarker.searchable_objects. |
| search | Finds possible watermarks according to specified search criteria.
The search is conducted in the objects specified in Watermarker.searchable_objects. |
| search | Finds all possible watermarks in the content.
The search is conducted in the objects specified in Watermarker.searchable_objects. |
| add | Adds a watermark to this WatermarkableImage.
This method assumes that watermark offset and size are measured in pixels (if they are assigned). |
| get_bytes | Gets the image as byte array. |
Remarks
Learn more: | | |
Example
Add watermark to all images inside a document of any supported type.
See Also
- module
groupdocs.watermark.contents.image - class
ContentPart - class
WatermarkableImage