|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cete.dynamicpdf.PageElement com.cete.dynamicpdf.pageelements.TaggablePageElement com.cete.dynamicpdf.pageelements.Watermark com.cete.dynamicpdf.pageelements.ImageWatermark
public class ImageWatermark
This class can be used to place a ImageWatermark on the page.
Licensing:
This is a DynamicPDF Generator Professional
Edition feature. One of the following licenses is required for non-evaluation usage:
Constructor Summary | |
---|---|
ImageWatermark(ImageData imageData)
Creates a new instance of ImageWatermark . |
|
ImageWatermark(java.lang.String filePath)
Creates a new instance of ImageWatermark . |
Method Summary | |
---|---|
void |
draw(PageWriter writer)
Draws the Image Watermark to the given PageWriter object. |
ImageData |
getImageData()
Get the image Watermark's ImageData object. |
float |
getScaleX()
Gets the horizontal scale of the image. |
float |
getScaleY()
Gets the vertical scale of the image. |
void |
setImageData(ImageData value)
Get the image Watermark's ImageData object. |
void |
setScaleX(float value)
Sets the horizontal scale of the image. |
void |
setScaleY(float value)
Sets the vertical scale of the image. |
Methods inherited from class com.cete.dynamicpdf.pageelements.Watermark |
---|
drawAnnotation, getAlternateName, getAngle, getName, getOpacity, getPosition, getXOffset, getYOffset, setAlternateName, setAngle, setName, setOpacity, setPosition, setXOffset, setYOffset |
Methods inherited from class com.cete.dynamicpdf.pageelements.TaggablePageElement |
---|
getTag, getTagOrder, setTag, setTagOrder |
Methods inherited from class com.cete.dynamicpdf.PageElement |
---|
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageWatermark(java.lang.String filePath) throws java.io.FileNotFoundException
ImageWatermark
.
java.io.FileNotFoundException
filePath
- Physical file path of the imageWatermark.public ImageWatermark(ImageData imageData)
ImageWatermark
.
imageData
- ImageData
object containing the image data.Method Detail |
---|
public ImageData getImageData()
ImageData
object.
ImageData
public void setImageData(ImageData value)
ImageData
object.
ImageData
public float getScaleX()
public void setScaleX(float value)
value
- the horizontal scale of the image.public float getScaleY()
public void setScaleY(float value)
value
- the vertical scale of the image.public void draw(PageWriter writer)
PageWriter
object.
draw
in class Watermark
writer
- PageWriter
object to receive the watermark's output.PageWriter
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |