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.
|
int |
getMaxDiff()
Gets or sets the maximum allowed pixel difference.
|
byte |
getPixelAspectRatio()
Gets or sets the GIF pixel aspect ratio.
|
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 |
setMaxDiff(int value)
Gets or sets the maximum allowed pixel difference.
|
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(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
clone, getBufferSizeHint, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, setBufferSizeHint, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions
dispose, getDisposed
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 XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
Value: The XMP data container.getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
Value: The XMP data container.setXmpData
in class ImageOptionsBase
public final boolean getDoPaletteCorrection()
Gets or sets a value indicating whether palette correction is applied.
Value:true
if palette correction is applied; otherwise, false
.
public final 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 final byte getColorResolution()
Gets or sets the GIF color resolution.
Value: The color resolution.public final void setColorResolution(byte value)
Gets or sets the GIF color resolution.
Value: The color resolution.public final boolean isPaletteSorted()
Gets or sets a value indicating whether palette entries are sorted.
Value:true
if palette entries are sorted; otherwise, false
.public final 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 final byte getPixelAspectRatio()
Gets or sets the GIF pixel aspect ratio.
Value: The GIF pixel aspect ratio.public final void setPixelAspectRatio(byte value)
Gets or sets the GIF pixel aspect ratio.
Value: The GIF pixel aspect ratio.public final byte getBackgroundColorIndex()
Gets or sets the GIF background color index.
Value: The GIF background color index.public final void setBackgroundColorIndex(byte value)
Gets or sets the GIF background color index.
Value: The GIF background color index.public final boolean hasTrailer()
Gets or sets a value indicating whether GIF has trailer.
Value:true
if GIF has trailer; otherwise, false
.public final void setTrailer(boolean value)
Gets or sets a value indicating whether GIF has trailer.
Value:true
if GIF has trailer; otherwise, false
.public final boolean getInterlaced()
True if image should be interlaced.
public final void setInterlaced(boolean value)
True if image should be interlaced.
public final int getMaxDiff()
Gets or sets the maximum allowed pixel difference. If greater than zero, lossy compression will be used. Recommended value for optimal lossy compression is 80. 30 is very light compression, 200 is heavy. It works best when only little loss is introduced, and due to limitation of the compression algorithm very high loss levels won't give as much gain. The range of allowed values is [0, 1000].
public final void setMaxDiff(int value)
Gets or sets the maximum allowed pixel difference. If greater than zero, lossy compression will be used. Recommended value for optimal lossy compression is 80. 30 is very light compression, 200 is heavy. It works best when only little loss is introduced, and due to limitation of the compression algorithm very high loss levels won't give as much gain. The range of allowed values is [0, 1000].
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.