PngOptions Class
Contents
[
Hide
]Summary: The png file format create options.
Module: aspose.psd.imageoptions
Full Name: aspose.psd.imageoptions.PngOptions
Inheritance: ImageOptionsBase
Aspose.PSD Version: 24.9.0
Constructors
Name | Description |
---|---|
PngOptions() | Initializes a new instance of the PngOptions class. |
PngOptions(png_options) | Initializes a new instance of the PngOptions class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
DEFAULT_COMPRESSION_LEVEL [static] | int | r | The default compression level. |
bit_depth | byte | r/w | The bit depth. |
buffer_size_hint | int | r/w | Gets or sets the buffer size hint which is defined max allowed size for all internal buffers. |
color_type | PngColorType | r/w | Gets or sets the type of the color. |
compression_level | int | r/w | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
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. |
filter_type | PngFilterType | r/w | Gets or sets the filter type used during png file save process. |
full_frame | bool | r/w | Gets or sets a value indicating whether [full frame]. |
multi_page_options | MultiPageOptions | r/w | The multipage options |
palette | IColorPalette | r/w | Gets or sets the color palette. |
progressive | bool | r/w | Gets or sets a value indicating whether this PngOptions is progressive. |
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: PngOptions()
PngOptions()
Initializes a new instance of the PngOptions class.
Constructor: PngOptions(png_options)
PngOptions(png_options)
Initializes a new instance of the PngOptions class.
Parameters:
Parameter | Type | Description |
---|---|---|
png_options | PngOptions | The PNG options. |
Method: clone()
clone()
Clones this instance.
Returns
Type | Description |
---|---|
ImageOptionsBase | Returns shallow copy of this instance |