public final class GifImageWatermarkOptions extends MultiframeImageWatermarkOptions
Learn more:
The following example demonstrates how to add a watermark to a particular frame of GIF image.
GifImageLoadOptions loadOptions = new GifImageLoadOptions(); Watermarker watermarker = new Watermarker("C:\\test.gif", loadOptions); TextWatermark watermark = new TextWatermark("Test", new Font("Arial", 12)); GifImageWatermarkOptions options = new GifImageWatermarkOptions(); options.setFrameIndex(0); watermarker.add(watermark, options); watermarker.save("D:\\watermarked_test.gif"); watermarker.close();
Constructor and Description |
---|
GifImageWatermarkOptions()
Initializes a new instance of the
class. |
GifImageWatermarkOptions(int frameIndex)
Initializes a new instance of the
class with a specified index of a frame. |
getFrameIndex, setFrameIndex
public GifImageWatermarkOptions()
GifImageWatermarkOptions
class.public GifImageWatermarkOptions(int frameIndex)
GifImageWatermarkOptions
class with a specified index of a frame.frameIndex
- The index of frame to add watermark.