public class Watermark extends Object
Represents a watermark of the page.
Constructor and Description |
---|
Watermark(BufferedImage nativeImage)
Initializes a watermark structure with an image.
|
Watermark(BufferedImage nativeImage,
Rectangle rect)
Initializes a watermark object with an image and it's position on a page.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAvailable()
Gets a flag the watermark is present.
|
BufferedImage |
getImage()
Gets an image of the watermark.
|
Rectangle |
getPosition()
Gets a position of the watermark's image on a page.
|
public Watermark(BufferedImage nativeImage, Rectangle rect)
Initializes a watermark object with an image and it's position on a page.
nativeImage
- image Image of the watermark.rect
- Position of the watermark on the page.public Watermark(BufferedImage nativeImage)
Initializes a watermark structure with an image.
nativeImage
- image Image of the watermark.public BufferedImage getImage()
Gets an image of the watermark.
public Rectangle getPosition()
Gets a position of the watermark's image on a page.
public boolean getAvailable()
Gets a flag the watermark is present.