Create WatermarkOptions class and set watermark text
getWidth()
public final int getWidth()
Watermark width
Returns:
int
setWidth(int value)
public final void setWidth(int value)
Watermark width
Parameters:
Parameter
Type
Description
value
int
getHeight()
public final int getHeight()
Watermark height
Returns:
int
setHeight(int value)
public final void setHeight(int value)
Watermark height
Parameters:
Parameter
Type
Description
value
int
getTop()
public final int getTop()
Watermark top position
Returns:
int
setTop(int value)
public final void setTop(int value)
Watermark top position
Parameters:
Parameter
Type
Description
value
int
getLeft()
public final int getLeft()
Watermark left position
Returns:
int
setLeft(int value)
public final void setLeft(int value)
Watermark left position
Parameters:
Parameter
Type
Description
value
int
getRotationAngle()
public final int getRotationAngle()
Watermark rotation angle
Returns:
int
setRotationAngle(int value)
public final void setRotationAngle(int value)
Watermark rotation angle
Parameters:
Parameter
Type
Description
value
int
getTransparency()
public final double getTransparency()
Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.
Returns:
double
setTransparency(double value)
public final void setTransparency(double value)
Watermark transparency. Value between 0 and 1. Value 0 is fully visible, value 1 is invisible.
Parameters:
Parameter
Type
Description
value
double
getBackground()
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.
Returns:
boolean
setBackground(boolean value)
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.
Parameters:
Parameter
Type
Description
value
boolean
isAutoAlign()
public boolean isAutoAlign()
Returns:
boolean
setAutoAlign(boolean autoAlign)
public void setAutoAlign(boolean autoAlign)
Parameters:
Parameter
Type
Description
autoAlign
boolean
deepClone()
public final Object deepClone()
Clone current instance
Returns:
java.lang.Object - instance
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.