com.groupdocs.watermark.options

Interfaces

Classes

com.groupdocs.watermark.options

Class GifImageWatermarkOptions



  • public final class GifImageWatermarkOptions
    extends MultiframeImageWatermarkOptions
    Represents watermark adding options when adding watermark to a GIF image.

    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 Detail

      • GifImageWatermarkOptions

        public GifImageWatermarkOptions()
        Initializes a new instance of the GifImageWatermarkOptions class.
      • GifImageWatermarkOptions

        public GifImageWatermarkOptions(int frameIndex)
        Initializes a new instance of the GifImageWatermarkOptions class with a specified index of a frame.
        Parameters:
        frameIndex - The index of frame to add watermark.