public class RenderingWatermark
extends java.lang.Object
| Constructor and Description |
|---|
RenderingWatermark(byte[] imageData)
Creates instance of image watermark.
|
RenderingWatermark(java.lang.String text,
RenderingFont renderingFont)
Creates instance of text watermark.
|
| Modifier and Type | Method and Description |
|---|---|
RenderingFont |
getFont()
Gets font of the watermark.
|
int |
getHAlignment()
Gets horizontal alignment of the watermark to the page.
|
byte[] |
getImage()
Gets image of the watermark.
|
float |
getOffsetX()
Gets offset value to
getHAlignment() |
float |
getOffsetY()
Gets offset value to
getVAlignment() |
float |
getOpacity()
Gets opacity of the watermark in range [0, 1].
|
float |
getRotation()
Gets roation of the watermark in degrees.
|
int |
getScaleToPagePercent()
Gets scale relative to target page in percent.
|
java.lang.String |
getText()
Gets text of the watermark.
|
int |
getVAlignment()
Gets vertical alignment of the watermark to the page.
|
boolean |
isBackground()
Indicates whether the watermark is placed behind page contents.
|
void |
setBackground(boolean value)
Indicates whether the watermark is placed behind page contents.
|
void |
setHAlignment(int value)
Sets horizontal alignment of the watermark to the page.
|
void |
setOffsetX(float value)
Sets offset value to
getHAlignment() |
void |
setOffsetY(float value)
Sets offset value to
getVAlignment() |
void |
setOpacity(float value)
Sets opacity of the watermark in range [0, 1].
|
void |
setRotation(float value)
Sets roation of the watermark in degrees.
|
void |
setScaleToPagePercent(int value)
Sets scale relative to target page in percent.
|
void |
setVAlignment(int value)
Sets vertical alignment of the watermark to the page.
|
public RenderingWatermark(java.lang.String text,
RenderingFont renderingFont)
text - watermark textrenderingFont - watermark fontpublic RenderingWatermark(byte[] imageData)
imageData - public float getRotation()
public void setRotation(float value)
public int getScaleToPagePercent()
public void setScaleToPagePercent(int value)
public float getOpacity()
public void setOpacity(float value)
public boolean isBackground()
public void setBackground(boolean value)
public java.lang.String getText()
public RenderingFont getFont()
public byte[] getImage()
public int getHAlignment()
See TextAlignmentType.
Remarks
Only Left, Center, Right is valid. Default is Left.public void setHAlignment(int value)
See TextAlignmentType.
Remarks
Only Left, Center, Right is valid. Default is Left.public int getVAlignment()
See TextAlignmentType.
Remarks
Only Top, Center, Bottom is valid. Default is Top.public void setVAlignment(int value)
See TextAlignmentType.
Remarks
Only Top, Center, Bottom is valid. Default is Top.public float getOffsetX()
getHAlignment()public void setOffsetX(float value)
getHAlignment()public float getOffsetY()
getVAlignment()public void setOffsetY(float value)
getVAlignment()See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.