GifOptions Class
Contents
[
Hide
]Summary: The gif file format creation options.
Module: aspose.psd.imageoptions
Full Name: aspose.psd.imageoptions.GifOptions
Inheritance: ImageOptionsBase
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
GifOptions() | Initializes a new instance of the GifOptions class. |
GifOptions(gif_options) | Initializes a new instance of the GifOptions class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
background_color_index | byte | r/w | Gets or sets the GIF background color index. |
buffer_size_hint | int | r/w | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
color_resolution | byte | r/w | Gets or sets the GIF color resolution. |
default_replacement_font | string | r/w | Gets 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 }); |
disposed | bool | r | Gets a value indicating whether this instance is disposed. |
do_palette_correction | bool | r/w | Gets or sets a value indicating whether palette correction is applied. |
full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. |
has_trailer | bool | r/w | Gets or sets a value indicating whether GIF has trailer. |
interlaced | bool | r/w | True if image should be interlaced. |
is_palette_sorted | bool | r/w | Gets or sets a value indicating whether palette entries are sorted. |
max_diff | int | r/w | 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]. |
multi_page_options | MultiPageOptions | r/w | The multipage options |
palette | IColorPalette | r/w | Gets or sets the color palette. |
pixel_aspect_ratio | byte | r/w | Gets or sets the GIF pixel aspect ratio. |
resolution_settings | ResolutionSetting | r/w | Gets or sets the resolution settings. |
source | Source | r/w | Gets or sets the source to create image in. |
vector_rasterization_options | VectorRasterizationOptions | r/w | Gets or sets the vector rasterization options. |
xmp_data | XmpPacketWrapper | r/w | Gets or sets the XMP metadata container. |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
gif_options | GifOptions | The GIF Options. |
Method: clone()
clone()
Clones this instance.
Returns
Type | Description |
---|---|
ImageOptionsBase | Returns shallow copy of this instance |