PngOptions
Inheritance: java.lang.Object, ImageOptionsBase
The png file format create options.
Constructors
| Constructor | Description |
|---|---|
| PngOptions() | Initializes a new instance of the PngOptions class. |
| PngOptions(PngOptions pngOptions) | Initializes a new instance of the JpegOptions class. |
Methods
| Method | Description |
|---|---|
| getTargetFormat() | |
| getXmpData() | Gets or sets the XMP metadata container. |
| setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value) | Gets or sets the XMP metadata container. |
| getColorType() | Gets or sets the type of the color. |
| setColorType(int value) | Gets or sets the type of the color. |
| getProgressive() | Gets or sets a value indicating whether this PngOptions is progressive. |
| setProgressive(boolean value) | Gets or sets a value indicating whether this PngOptions is progressive. |
| getFilterType() | Gets or sets the filter type used during png file save process. |
| setFilterType(int value) | Gets or sets the filter type used during png file save process. |
| getCompressionLevel() | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| setCompressionLevel(int value) | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| getBitDepth() | The bit depth. |
| setBitDepth(byte value) | The bit depth. |
PngOptions()
public PngOptions()
Initializes a new instance of the PngOptions class.
PngOptions(PngOptions pngOptions)
public PngOptions(PngOptions pngOptions)
Initializes a new instance of the JpegOptions class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pngOptions | PngOptions | The PNG options. |
getTargetFormat()
public long getTargetFormat()
Returns: long
getXmpData()
public com.aspose.cad.xmp.XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
Returns: com.aspose.cad.xmp.XmpPacketWrapper - The XMP data container.
setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
public void setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
Gets or sets the XMP metadata container.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | com.aspose.cad.xmp.XmpPacketWrapper | The XMP data container. |
getColorType()
public int getColorType()
Gets or sets the type of the color.
Returns: int - The type of the color.
setColorType(int value)
public void setColorType(int value)
Gets or sets the type of the color.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The type of the color. |
getProgressive()
public boolean getProgressive()
Gets or sets a value indicating whether this PngOptions is progressive.
Returns: boolean - true if progressive; otherwise, false .
setProgressive(boolean value)
public void setProgressive(boolean value)
Gets or sets a value indicating whether this PngOptions is progressive.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true if progressive; otherwise, false . |
getFilterType()
public int getFilterType()
Gets or sets the filter type used during png file save process.
Returns: int
setFilterType(int value)
public void setFilterType(int value)
Gets or sets the filter type used during png file save process.
getCompressionLevel()
public int getCompressionLevel()
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
Returns: int
setCompressionLevel(int value)
public void setCompressionLevel(int value)
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
getBitDepth()
public byte getBitDepth()
The bit depth.
Returns: byte
setBitDepth(byte value)
public void setBitDepth(byte value)
The bit depth.