com.aspose.imaging.createoptions
Class GifCreateOptions

java.lang.Object
  extended by com.aspose.imaging.CreateOptionsBase
      extended by com.aspose.imaging.createoptions.ImageCreateOptions
          extended by com.aspose.imaging.createoptions.GifCreateOptions

public class GifCreateOptions
extends ImageCreateOptions

The gif file format creation options.


Constructor Summary
GifCreateOptions()
           Initializes a new instance of the GifCreateOptions class.
GifCreateOptions(GifCreateOptions gifCreateOptions)
           Initializes a new instance of the GifCreateOptions class.
 
Method Summary
 byte getBackgroundColorIndex()
           Gets the GIF background color index.
 byte getColorResolution()
           Gets the GIF color resolution.
 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 setPixelAspectRatio(byte value)
           Sets the GIF pixel aspect ratio.
 
Methods inherited from class com.aspose.imaging.createoptions.ImageCreateOptions
getHeight, getPalette, getUseCompactPalette, getWidth, setHeight, setPalette, setUseCompactPalette, setWidth
 
Methods inherited from class com.aspose.imaging.CreateOptionsBase
getSource, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GifCreateOptions

public GifCreateOptions()

Initializes a new instance of the GifCreateOptions class.


GifCreateOptions

public GifCreateOptions(GifCreateOptions gifCreateOptions)

Initializes a new instance of the GifCreateOptions class.

Parameters:
gifCreateOptions - The GIF create 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.


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.


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.