public class GifOptions extends ImageOptionsBase
The gif file format creation options.
Constructor and Description |
---|
GifOptions()
Initializes a new instance of the
GifOptions class. |
GifOptions(GifOptions gifOptions)
Initializes a new instance of the
GifOptions class. |
Modifier and Type | Method and Description |
---|---|
byte |
getBackgroundColorIndex()
Gets or sets the GIF background color index.
|
byte |
getColorResolution()
Gets or sets the GIF color resolution.
|
boolean |
getDoPaletteCorrection()
Gets or sets a value indicating whether palette correction is applied.
|
boolean |
getInterlaced()
True if image should be interlaced.
|
byte |
getPixelAspectRatio()
Gets or sets the GIF pixel aspect ratio.
|
long |
getTargetFormat() |
com.aspose.cad.xmp.XmpPacketWrapper |
getXmpData()
Gets or sets the XMP metadata container.
|
boolean |
hasTrailer()
Gets or sets a value indicating whether GIF has trailer.
|
boolean |
isPaletteSorted()
Gets or sets a value indicating whether palette entries are sorted.
|
void |
setBackgroundColorIndex(byte value)
Gets or sets the GIF background color index.
|
void |
setColorResolution(byte value)
Gets or sets the GIF color resolution.
|
void |
setDoPaletteCorrection(boolean value)
Gets or sets a value indicating whether palette correction is applied.
|
void |
setInterlaced(boolean value)
True if image should be interlaced.
|
void |
setPaletteSorted(boolean value)
Gets or sets a value indicating whether palette entries are sorted.
|
void |
setPixelAspectRatio(byte value)
Gets or sets the GIF pixel aspect ratio.
|
void |
setTrailer(boolean value)
Gets or sets a value indicating whether GIF has trailer.
|
void |
setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
getInterruptionToken, getLayers, getPalette, getPc3File, getResolutionSettings, getRotation, getSource, getTimeout, getUserWatermarkColor, getUserWatermarkText, getVectorRasterizationOptions, setInterruptionToken, setLayers, setPalette, setPc3File, setResolutionSettings, setRotation, setSource, setTimeout, setUserWatermarkColor, setUserWatermarkText, setVectorRasterizationOptions
public GifOptions()
Initializes a new instance of the GifOptions
class.
public GifOptions(GifOptions gifOptions)
Initializes a new instance of the GifOptions
class.
gifOptions
- The GIF Options.public long getTargetFormat()
getTargetFormat
in class ImageOptionsBase
public com.aspose.cad.xmp.XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
getXmpData
in class ImageOptionsBase
public void setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
Gets or sets the XMP metadata container.
setXmpData
in class ImageOptionsBase
value
- The XMP data container.public boolean getDoPaletteCorrection()
Gets or sets a value indicating whether palette correction is applied.
true
if palette correction is applied; otherwise, false
.
public void setDoPaletteCorrection(boolean value)
Gets or sets a value indicating whether palette correction is applied.
value
- true
if palette correction is applied; otherwise, false
.
public byte getColorResolution()
Gets or sets the GIF color resolution.
public void setColorResolution(byte value)
Gets or sets the GIF color resolution.
value
- The color resolution.
public boolean isPaletteSorted()
Gets or sets a value indicating whether palette entries are sorted.
true
if palette entries are sorted; otherwise, false
.public void setPaletteSorted(boolean value)
Gets or sets a value indicating whether palette entries are sorted.
value
- true
if palette entries are sorted; otherwise, false
.public byte getPixelAspectRatio()
Gets or sets the GIF pixel aspect ratio.
public void setPixelAspectRatio(byte value)
Gets or sets the GIF pixel aspect ratio.
value
- The GIF pixel aspect ratio.
public byte getBackgroundColorIndex()
Gets or sets the GIF background color index.
public void setBackgroundColorIndex(byte value)
Gets or sets the GIF background color index.
value
- The GIF background color index.public boolean hasTrailer()
Gets or sets a value indicating whether GIF has trailer.
true
if GIF has trailer; otherwise, false
.public void setTrailer(boolean value)
Gets or sets a value indicating whether GIF has trailer.
value
- true
if GIF has trailer; otherwise, false
.public boolean getInterlaced()
True if image should be interlaced.
public void setInterlaced(boolean value)
True if image should be interlaced.