ImageWatermark class
ImageWatermark class
Represents an image watermark.
Inheritance: ImageWatermark →
Watermark
The ImageWatermark type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the ImageWatermark class with a specified file path. |
| init | Initializes a new instance of the ImageWatermark class with a specified stream. |
Properties
| Property | Description |
|---|---|
| opacity | Gets or sets the opacity of this Watermark. |
| y | Gets or sets the y-coordinate of this Watermark. |
| x | Gets or sets the x-coordinate of this Watermark. |
| vertical_alignment | Gets or sets the vertical alignment of this Watermark. |
| horizontal_alignment | Gets or sets the horizontal alignment of this Watermark. |
| rotate_angle | Gets or sets the rotate angle of this Watermark in degrees. |
| is_background | Gets or sets a value indicating whether the watermark should be placed at background. |
| margins | Gets or sets the margin settings of this Watermark. |
| pages_setup | Gets or sets the pages setup settings of this Watermark. |
| height | Gets or sets the desired height of this Watermark. |
| width | Gets or sets the desired width of this Watermark. |
| scale_factor | Gets or sets a value that defines how watermark size depends on parent size. |
| sizing_type | Gets or sets a value specifying a way watermark should be sized. |
| consider_parent_margins | Gets or sets a value indicating whether the watermark size and coordinates are calculated
considering parent margins. |
| save_result_in_metadata | Gets or sets a value indicating whether to save information about added watermarks in the document metadata. |
| tile_options | Get or sets options to define repeated watermark |
Remarks
Learn more: | | |
Example
Add image watermark to a document of any supported type.
See Also
- module
groupdocs.watermark.watermarks - class
ImageWatermark - class
Watermark