com.groupdocs.signature.options.saveoptions.imagessaveoptions

Class GifSaveOptions



  • public class GifSaveOptions
    extends com.groupdocs.signature.options.saveoptions.imagessaveoptions.ImageSaveOptions

    Gif format save options for Image Documents.

    • Constructor Detail

      • GifSaveOptions

        public GifSaveOptions()

        Creates GifSaveOptions with default values.

    • Method Detail

      • getBackgroundColorIndex

        public byte getBackgroundColorIndex()

        Gets or sets the GIF background color index.

      • getColorResolution

        public byte getColorResolution()

        Gets or sets the GIF color resolution.


        Color Resolution - Number of bits per primary color available to the original image, minus 1. This value represents the size of the entire palette from which the colors in the graphic were selected, not the number of colors actually used in the graphic. For example, if the value in this field is 3, then the palette of the original image had 4 bits per primary color available to create the image. This value should be set to indicate the richness of the original palette, even if not every color from the whole palette is available on the source machine.
      • getDoPaletteCorrection

        public boolean getDoPaletteCorrection()

        Gets or sets a value indicating whether palette correction is applied.


        Palette correction means that whenever image is exported to GIF the source image colors will be analyzed in order to build the best matching palette (in case image Palette does not exist or not specified in the options). The analyze process takes some time however the output image will have the best matching color palette and result is visually better.
      • getInterlaced

        public boolean getInterlaced()

        True if image should be interlaced.

      • getPixelAspectRatio

        public byte getPixelAspectRatio()

        Gets or sets the GIF pixel aspect ratio.


        Pixel Aspect Ratio - Factor used to compute an approximation of the aspect ratio of the pixel in the original image. If the value of the field is not 0, this approximation of the aspect ratio is computed based on the formula: Aspect Ratio = (Pixel Aspect Ratio + 15) / 64 The Pixel Aspect Ratio is defined to be the quotient of the pixel's width over its height. The value range in this field allows specification of the widest pixel of 4:1 to the tallest pixel of 1:4 in increments of 1/64th. Values : 0 - No aspect ratio information is given. 1..255 - Value used in the computation.
      • hasTrailer

        public boolean hasTrailer()

        Gets or sets a value indicating whether GIF has trailer.

      • isPaletteSorted

        public boolean isPaletteSorted()

        Gets or sets a value indicating whether palette entries are sorted.

      • setBackgroundColorIndex

        public void setBackgroundColorIndex(byte value)

        Gets or sets the GIF background color index.

      • setColorResolution

        public void setColorResolution(byte value)

        Gets or sets the GIF color resolution.


        Color Resolution - Number of bits per primary color available to the original image, minus 1. This value represents the size of the entire palette from which the colors in the graphic were selected, not the number of colors actually used in the graphic. For example, if the value in this field is 3, then the palette of the original image had 4 bits per primary color available to create the image. This value should be set to indicate the richness of the original palette, even if not every color from the whole palette is available on the source machine.
      • setDoPaletteCorrection

        public void setDoPaletteCorrection(boolean value)

        Gets or sets a value indicating whether palette correction is applied.


        Palette correction means that whenever image is exported to GIF the source image colors will be analyzed in order to build the best matching palette (in case image Palette does not exist or not specified in the options). The analyze process takes some time however the output image will have the best matching color palette and result is visually better.
      • setInterlaced

        public void setInterlaced(boolean value)

        True if image should be interlaced.

      • setPaletteSorted

        public void setPaletteSorted(boolean value)

        Gets or sets a value indicating whether palette entries are sorted.

      • setPixelAspectRatio

        public void setPixelAspectRatio(byte value)

        Gets or sets the GIF pixel aspect ratio.


        Pixel Aspect Ratio - Factor used to compute an approximation of the aspect ratio of the pixel in the original image. If the value of the field is not 0, this approximation of the aspect ratio is computed based on the formula: Aspect Ratio = (Pixel Aspect Ratio + 15) / 64 The Pixel Aspect Ratio is defined to be the quotient of the pixel's width over its height. The value range in this field allows specification of the widest pixel of 4:1 to the tallest pixel of 1:4 in increments of 1/64th. Values : 0 - No aspect ratio information is given. 1..255 - Value used in the computation.
      • setTrailer

        public void setTrailer(boolean value)

        Gets or sets a value indicating whether GIF has trailer.