GifOptions Class

Summary: The gif file format creation options.

Module: aspose.psd.imageoptions

Full Name: aspose.psd.imageoptions.GifOptions

Inheritance: ImageOptionsBase

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
GifOptions()Initializes a new instance of the GifOptions class.
GifOptions(gif_options)Initializes a new instance of the GifOptions class.

Properties

NameTypeAccessDescription
background_color_indexbyter/wGets or sets the GIF background color index.
buffer_size_hintintr/wGets or sets the buffer size hint which is defined max allowed size for all internal buffers.
color_resolutionbyter/wGets or sets the GIF color resolution.
default_replacement_fontstringr/wGets or sets the default replacement font (font that will be used to draw text when exporting to raster, if existing layer font in PSD file is not presented in system).
To take proper name of default font can be used next code snippet:
System.Drawing.Text.InstalledFontCollection col = new System.Drawing.Text.InstalledFontCollection();
System.Drawing.FontFamily families = col.Families;
string defaultFontName = families[0].Name;
PsdLoadOptions psdLoadOptions = new PsdLoadOptions() { DefaultReplacementFont = defaultFontName });
disposedboolrGets a value indicating whether this instance is disposed.
do_palette_correctionboolr/wGets or sets a value indicating whether palette correction is applied.
full_frameboolr/wGets or sets a value indicating whether [full frame].
has_trailerboolr/wGets or sets a value indicating whether GIF has trailer.
interlacedboolr/wTrue if image should be interlaced.
is_palette_sortedboolr/wGets or sets a value indicating whether palette entries are sorted.
max_diffintr/wGets 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].
multi_page_optionsMultiPageOptionsr/wThe multipage options
paletteIColorPaletter/wGets or sets the color palette.
pixel_aspect_ratiobyter/wGets or sets the GIF pixel aspect ratio.
resolution_settingsResolutionSettingr/wGets or sets the resolution settings.
sourceSourcer/wGets or sets the source to create image in.
vector_rasterization_optionsVectorRasterizationOptionsr/wGets or sets the vector rasterization options.
xmp_dataXmpPacketWrapperr/wGets or sets the XMP metadata container.

Methods

NameDescription
clone()Clones this instance.

Constructor: GifOptions()

 GifOptions() 

Initializes a new instance of the GifOptions class.

Constructor: GifOptions(gif_options)

 GifOptions(gif_options) 

Initializes a new instance of the GifOptions class.

Parameters:

ParameterTypeDescription
gif_optionsGifOptionsThe GIF Options.

Method: clone()

 clone() 

Clones this instance.

Returns

TypeDescription
ImageOptionsBaseReturns shallow copy of this instance