TiffImageWatermarkOptions

Inheritance: java.lang.Object, com.groupdocs.watermark.options.WatermarkOptions, com.groupdocs.watermark.options.MultiframeImageWatermarkOptions

public final class TiffImageWatermarkOptions extends MultiframeImageWatermarkOptions

Represents watermark adding options when adding watermark to a TIFF image.

Learn more:

The following example demonstrates how to add a watermark to a particular frame of TIFF image.

TiffImageImageLoadOptions loadOptions = new TiffImageImageLoadOptions(); Watermarker watermarker = new Watermarker(“C:\test.tiff”, loadOptions);

TextWatermark watermark = new TextWatermark(“Test”, new Font(“Arial”, 12));

TiffImageWatermarkOptions options = new TiffImageWatermarkOptions(); options.setFrameIndex(0);

watermarker.add(watermark, options); watermarker.save(“D:\watermarked_test.tiff”); watermarker.close();

Constructors

Constructor Description
TiffImageWatermarkOptions() Initializes a new instance of the [TiffImageWatermarkOptions](../../com.groupdocs.watermark.options/tiffimagewatermarkoptions) class.
TiffImageWatermarkOptions(int frameIndex) Initializes a new instance of the [TiffImageWatermarkOptions](../../com.groupdocs.watermark.options/tiffimagewatermarkoptions) class with a specified index of the frame.

TiffImageWatermarkOptions()

public TiffImageWatermarkOptions()

Initializes a new instance of the [TiffImageWatermarkOptions](../../com.groupdocs.watermark.options/tiffimagewatermarkoptions) class.

TiffImageWatermarkOptions(int frameIndex)

public TiffImageWatermarkOptions(int frameIndex)

Initializes a new instance of the [TiffImageWatermarkOptions](../../com.groupdocs.watermark.options/tiffimagewatermarkoptions) class with a specified index of the frame.

Parameters:

Parameter Type Description
frameIndex int The index of frame to add watermark.