GifOptions Class |
Namespace: Aspose.PSD.ImageOptions
The GifOptions type exposes the following members.
Name | Description | |
---|---|---|
![]() | GifOptions |
Initializes a new instance of the GifOptions class.
|
![]() | GifOptions(GifOptions) |
Initializes a new instance of the GifOptions class.
|
Name | Description | |
---|---|---|
![]() | BackgroundColorIndex |
Gets or sets the GIF background color index.
|
![]() | BufferSizeHint |
Gets or sets the buffer size hint which is defined max allowed size for all internal buffers.
(Inherited from ImageOptionsBase.) |
![]() | ColorResolution |
Gets or sets the GIF color resolution.
|
![]() ![]() | DefaultReplacementFont |
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 });
(Inherited from ImageOptionsBase.) |
![]() | Disposed |
Gets a value indicating whether this instance is disposed.
(Inherited from DisposableObject.) |
![]() | DoPaletteCorrection |
Gets or sets a value indicating whether palette correction is applied.
|
![]() | FullFrame |
Gets or sets a value indicating whether [full frame].
(Inherited from ImageOptionsBase.) |
![]() | HasTrailer |
Gets or sets a value indicating whether GIF has trailer.
|
![]() | Interlaced |
True if image should be interlaced.
|
![]() | IsPaletteSorted |
Gets or sets a value indicating whether palette entries are sorted.
|
![]() | MaxDiff |
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].
|
![]() | MultiPageOptions |
The multipage options
(Inherited from ImageOptionsBase.) |
![]() | Palette |
Gets or sets the color palette.
(Inherited from ImageOptionsBase.) |
![]() | PixelAspectRatio |
Gets or sets the GIF pixel aspect ratio.
|
![]() | ProgressEventHandler |
Gets or sets the progress event handler.
(Inherited from ImageOptionsBase.) |
![]() | ResolutionSettings |
Gets or sets the resolution settings.
(Inherited from ImageOptionsBase.) |
![]() | Source |
Gets or sets the source to create image in.
(Inherited from ImageOptionsBase.) |
![]() | VectorRasterizationOptions |
Gets or sets the vector rasterization options.
(Inherited from ImageOptionsBase.) |
![]() | XmpData |
Gets or sets the XMP metadata container.
(Overrides ImageOptionsBaseXmpData.) |
Name | Description | |
---|---|---|
![]() | Clone |
Clones this instance.
(Inherited from ImageOptionsBase.) |
![]() | Dispose |
Disposes the current instance.
(Inherited from DisposableObject.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from DisposableObject.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ReleaseManagedResources |
Releases the managed resources. Make sure no unmanaged resources are released here, since they may have been already released.
(Inherited from ImageOptionsBase.) |
![]() | ReleaseUnmanagedResources |
Releases the unmanaged resources. Make sure no managed resources are released here, since they may have been already released.
(Inherited from DisposableObject.) |
![]() | ToString | (Inherited from Object.) |
![]() | VerifyNotDisposed |
Verifies that the current instance is not disposed.
(Inherited from DisposableObject.) |
Name | Description | |
---|---|---|
![]() | xmpData |
XMP metadata of image.
(Inherited from ImageOptionsBase.) |
[C#] //Load an existing image in an instance of Image class using (Aspose.PSD.Image image = Aspose.PSD.Image.Load(@"C:\temp\image.psd")) { //Export to BMP file format using the default options image.Save(@"C:\temp\output.bmp", new Aspose.PSD.ImageOptions.BmpOptions()); //Export to JPEG file format using the default options image.Save(@"C:\temp\output.jpeg", new Aspose.PSD.ImageOptions.JpegOptions()); //Export to JPEG 2000 file format using the default options image.Save(@"C:\temp\output.jp2", new Aspose.PSD.ImageOptions.Jpeg2000Options()); //Export to PNG file format using the default options image.Save(@"C:\temp\output.png", new Aspose.PSD.ImageOptions.PngOptions()); //Export to TIFF file format using the default options image.Save(@"c:\temp\output.tiff", new Aspose.PSD.ImageOptions.TiffOptions(Aspose.PSD.FileFormats.Tiff.Enums.TiffExpectedFormat.Default)); }