Inherits SystemIDisposable.
Public Types | |
enum | Flags { Flags.e_FlagASPageContents = 0x0000, Flags.e_FlagASAnnot = 0x0001, Flags.e_FlagOnTop = 0x0002, Flags.e_FlagNoPrint = 0x0004, Flags.e_FlagInvisible = 0x0008 } |
Enumeration for watermark setting flags. More... | |
Public Member Functions | |
WatermarkSettings (Position position, float offset_x, float offset_y, int flags, float scale_x, float scale_y, float rotation, int opacity) | |
Constructor, with parameters. More... | |
WatermarkSettings () | |
Constructor. | |
WatermarkSettings (WatermarkSettings settings) | |
Constructor, with another WatermarkSettings. | |
void | Set (Position position, float offset_x, float offset_y, int flags, float scale_x, float scale_y, float rotation, int opacity) |
Set value. More... | |
This class represents the watermark settings used to construct a Watermark object from any supported resource.
|
strong |
Enumeration for watermark setting flags.
Values of this enumeration can be used alone or in combination.
|
inline |
Constructor, with parameters.
position | Watermark position. Please refer to e_PosXXX values and this should be one of these macros. |
offset_x | Horizontal offset, in points. |
offset_y | Vertical offset, in points. |
flags | Watermark flags. Please refer to e_FlagXXX values and this can be one or a combination of these macros. |
scale_x | Horizontal scale coefficient. It should be greater than 0.001f. |
scale_y | Vertical scale coefficient. It should be greater than 0.001f. |
rotation | Rotation angle in degrees. It should be greater than 0.001f. |
opacity | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |
|
inline |
Set value.
position | Watermark position. Please refer to e_PosXXX values and this should be one of these macros. |
offset_x | Horizontal offset, in points. |
offset_y | Vertical offset, in points. |
flags | Watermark flags. Please refer to e_FlagXXX values and this can be one or a combination of these macros. |
scale_x | Horizontal scale coefficient. It should be greater than 0.001f. |
scale_y | Vertical scale coefficient. It should be greater than 0.001f. |
rotation | Rotation angle in degrees. It should be greater than 0.001f. |
opacity | Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque. |