public final class ImageWatermark extends Watermark implements Closeable
Represents an image watermark.
Constructor and Description |
---|
ImageWatermark(InputStream stream)
Initializes a new instance of the
ImageWatermark class. |
ImageWatermark(String filePath)
Initializes a new instance of the
ImageWatermark class. |
Modifier and Type | Method and Description |
---|---|
void |
close()
Disposes the current instance.
|
getConsiderParentMargins, getHeight, getHorizontalAlignment, getMargins, getOpacity, getRotateAngle, getScaleFactor, getSizingType, getVerticalAlignment, getWidth, getX, getY, isBackground, setBackground, setConsiderParentMargins, setHeight, setHorizontalAlignment, setMargins, setOpacity, setRotateAngle, setScaleFactor, setSizingType, setVerticalAlignment, setWidth, setX, setY
public ImageWatermark(String filePath)
Initializes a new instance of the ImageWatermark
class.
filePath
- Path to the image that will be used as watermark.public ImageWatermark(InputStream stream)
Initializes a new instance of the ImageWatermark
class.
stream
- Stream containing the image that will be used as watermark.public final void close()
Disposes the current instance.
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.