GifImageWatermarkOptions

GifImageWatermarkOptions class

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

public sealed class GifImageWatermarkOptions : MultiframeImageWatermarkOptions

Constructors

Name Description
GifImageWatermarkOptions() Initializes a new instance of the GifImageWatermarkOptions class.
GifImageWatermarkOptions(int) Initializes a new instance of the GifImageWatermarkOptions class with a specified index of a frame.

Properties

Name Description
FrameIndex { get; set; } Gets or sets the index of frame to add watermark.

Remarks

Learn more:

Examples

Add a watermark to a particular frame of GIF image.

GifImageLoadOptions loadOptions = new GifImageLoadOptions();
using (Watermarker watermarker = new Watermarker(@"C:\test.gif", loadOptions))
{
    TextWatermark watermark = new TextWatermark("Test", new Font("Arial", 12));

    GifImageWatermarkOptions options = new GifImageWatermarkOptions();
    options.FrameIndex = 0;

    watermarker.Add(watermark, options);
    watermarker.Save();
}

See Also