public final class WatermarkOptions extends ValueObject implements Cloneable, Serializable
Options for settings watermark to the converted document
Constructor and Description |
---|
WatermarkOptions()
Create WatermarkOptions class and set watermark text
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone current instance
|
boolean |
getBackground()
Indicates that the watermark is stamped as background.
|
Color |
getColor()
Watermark font color if text watermark is applied
|
com.aspose.ms.System.Drawing.Color |
getColorInternal() |
Font |
getFont()
Watermark font name if text watermark is applied
|
com.aspose.ms.System.Drawing.Font |
getFontInternal() |
int |
getHeight()
Watermark height
|
byte[] |
getImage()
Image watermark
|
int |
getLeft()
Watermark left position
|
int |
getRotationAngle()
Watermark rotation angle
|
String |
getText()
Watermark text
|
int |
getTop()
Watermark top position
|
double |
getTransparency()
Watermark transparency.
|
int |
getWidth()
Watermark width
|
void |
setBackground(boolean value)
Indicates that the watermark is stamped as background.
|
void |
setColor(Color value)
Watermark font color if text watermark is applied
|
void |
setFont(Font value)
Watermark font name if text watermark is applied
|
void |
setHeight(int value)
Watermark height
|
void |
setImage(byte[] value)
Image watermark
|
void |
setLeft(int value)
Watermark left position
|
void |
setRotationAngle(int value)
Watermark rotation angle
|
void |
setText(String value)
Watermark text
|
void |
setTop(int value)
Watermark top position
|
void |
setTransparency(double value)
Watermark transparency.
|
void |
setWidth(int value)
Watermark width
|
equals, equals, hashCode, op_Equality, op_Inequality
public WatermarkOptions()
Create WatermarkOptions class and set watermark text
public final String getText()
Watermark text
public final void setText(String value)
Watermark text
public final Font getFont()
Watermark font name if text watermark is applied
public com.aspose.ms.System.Drawing.Font getFontInternal()
public final void setFont(Font value)
Watermark font name if text watermark is applied
public final Color getColor()
Watermark font color if text watermark is applied
public com.aspose.ms.System.Drawing.Color getColorInternal()
public final void setColor(Color value)
Watermark font color if text watermark is applied
public final int getWidth()
Watermark width
public final void setWidth(int value)
Watermark width
public final int getHeight()
Watermark height
public final void setHeight(int value)
Watermark height
public final int getTop()
Watermark top position
public final void setTop(int value)
Watermark top position
public final int getLeft()
Watermark left position
public final void setLeft(int value)
Watermark left position
public final int getRotationAngle()
Watermark rotation angle
public final void setRotationAngle(int value)
Watermark rotation angle
public final double getTransparency()
Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.
public final void setTransparency(double value)
Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.
public final boolean getBackground()
Indicates that the watermark is stamped as background. If the value is true, the watermark is laid at the bottom. By default is false and the watermark is laid on top.
public final void setBackground(boolean value)
Indicates that the watermark is stamped as background. If the value is true, the watermark is laid at the bottom. By default is false and the watermark is laid on top.
public final byte[] getImage()
Image watermark
public final void setImage(byte[] value)
Image watermark
public final Object deepClone()
Clone current instance