com.aspose.imaging.saveoptions
Class GifSaveOptions

java.lang.Object
  extended by com.aspose.imaging.SaveOptionsBase
      extended by com.aspose.imaging.saveoptions.GifSaveOptions

public final class GifSaveOptions
extends SaveOptionsBase

The gif file format save options.


Constructor Summary
GifSaveOptions()
           Initializes a new instance of the GifSaveOptions class.
GifSaveOptions(GifSaveOptions gifSaveOptions)
           Initializes a new instance of the GifSaveOptions class.
 
Method Summary
 byte getBackgroundColorIndex()
           Gets the GIF background color index.
 byte getColorResolution()
           Gets the GIF color resolution.
 boolean getInterlaced()
           Gets a value indicating whether saved GIf will be interlaced.
 IColorPalette getPalette()
           Gets the color palette.
 byte getPixelAspectRatio()
           Gets the GIF pixel aspect ratio.
 boolean hasTrailer()
           Gets a value indicating whether GIF has trailer.
 void hasTrailer(boolean value)
           Sets a value indicating whether GIF has trailer.
 boolean isPaletteSorted()
           Gets a value indicating whether palette entries are sorted.
 void isPaletteSorted(boolean value)
           Sets a value indicating whether palette entries are sorted.
 void setBackgroundColorIndex(byte value)
           Sets the GIF background color index.
 void setColorResolution(byte value)
           Sets the GIF color resolution.
 void setInterlaced(boolean value)
           Sets a value indicating whether saved GIf will be interlaced.
 void setPalette(IColorPalette value)
           Sets the color palette.
 void setPixelAspectRatio(byte value)
           Sets the GIF pixel aspect ratio.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifSaveOptions

public GifSaveOptions()

Initializes a new instance of the GifSaveOptions class.


GifSaveOptions

public GifSaveOptions(GifSaveOptions gifSaveOptions)

Initializes a new instance of the GifSaveOptions class.

Parameters:
gifSaveOptions - The GIF save options.
Method Detail

getBackgroundColorIndex

public byte getBackgroundColorIndex()

Gets the GIF background color index.

Value: The GIF background color index.


getColorResolution

public byte getColorResolution()

Gets the GIF color resolution.

Value: The 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.


getInterlaced

public boolean getInterlaced()

Gets a value indicating whether saved GIf will be interlaced.

Value: true if saved GIf will be interlaced; otherwise, false.


getPalette

public IColorPalette getPalette()

Gets the color palette.

Value: The color palette.


getPixelAspectRatio

public byte getPixelAspectRatio()

Gets the GIF pixel aspect ratio.

Value: 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 a value indicating whether GIF has trailer.

Value: true if GIF has trailer; otherwise, false.


hasTrailer

public void hasTrailer(boolean value)

Sets a value indicating whether GIF has trailer.

Value: true if GIF has trailer; otherwise, false.


isPaletteSorted

public boolean isPaletteSorted()

Gets a value indicating whether palette entries are sorted.

Value: true if palette entries are sorted; otherwise, false.


isPaletteSorted

public void isPaletteSorted(boolean value)

Sets a value indicating whether palette entries are sorted.

Value: true if palette entries are sorted; otherwise, false.


setBackgroundColorIndex

public void setBackgroundColorIndex(byte value)

Sets the GIF background color index.

Value: The GIF background color index.


setColorResolution

public void setColorResolution(byte value)

Sets the GIF color resolution.

Value: The 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.


setInterlaced

public void setInterlaced(boolean value)

Sets a value indicating whether saved GIf will be interlaced.

Value: true if saved GIf will be interlaced; otherwise, false.


setPalette

public void setPalette(IColorPalette value)

Sets the color palette.

Value: The color palette.


setPixelAspectRatio

public void setPixelAspectRatio(byte value)

Sets the GIF pixel aspect ratio.

Value: 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.