DynamicPDF by ceTe Software

com.cete.dynamicpdf.pageelements
Class ImageWatermark

java.lang.Object
  extended by com.cete.dynamicpdf.PageElement
      extended by com.cete.dynamicpdf.pageelements.TaggablePageElement
          extended by com.cete.dynamicpdf.pageelements.Watermark
              extended by com.cete.dynamicpdf.pageelements.ImageWatermark
All Implemented Interfaces:
IAnnotation

public class ImageWatermark
extends Watermark

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:

View Example


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

ImageWatermark

public ImageWatermark(java.lang.String filePath)
               throws java.io.FileNotFoundException
Creates a new instance of ImageWatermark.

Throws:
java.io.FileNotFoundException
Parameters:
filePath - Physical file path of the imageWatermark.

ImageWatermark

public ImageWatermark(ImageData imageData)
Creates a new instance of ImageWatermark.

Parameters:
imageData - ImageData object containing the image data.
Method Detail

getImageData

public ImageData getImageData()
Get the image Watermark's ImageData object.

Returns:
the image data.
See Also:
ImageData

setImageData

public void setImageData(ImageData value)
Get the image Watermark's ImageData object.

See Also:
ImageData

getScaleX

public float getScaleX()
Gets the horizontal scale of the image.

Returns:
the horizontal scale of the image.

setScaleX

public void setScaleX(float value)
Sets the horizontal scale of the image.

Parameters:
value - the horizontal scale of the image.

getScaleY

public float getScaleY()
Gets the vertical scale of the image.

Returns:
the vertical scale of the image.

setScaleY

public void setScaleY(float value)
Sets the vertical scale of the image.

Parameters:
value - the vertical scale of the image.

draw

public void draw(PageWriter writer)
Draws the Image Watermark to the given PageWriter object.

Overrides:
draw in class Watermark
Parameters:
writer - PageWriter object to receive the watermark's output.
See Also:
PageWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software