public class PngOptions extends ImageOptionsBase
The png file format create options.
Constructor and Description |
---|
PngOptions()
Initializes a new instance of the
PngOptions class. |
PngOptions(PngOptions pngOptions)
Initializes a new instance of the
JpegOptions class. |
Modifier and Type | Method and Description |
---|---|
byte |
getBitDepth()
The bit depth.
|
int |
getColorType()
Gets or sets the type of the color.
|
int |
getCompressionLevel()
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
|
int |
getFilterType()
Gets or sets the filter type used during png file save process.
|
boolean |
getProgressive()
Gets or sets a value indicating whether this
PngOptions is progressive. |
long |
getTargetFormat() |
com.aspose.cad.xmp.XmpPacketWrapper |
getXmpData()
Gets or sets the XMP metadata container.
|
void |
setBitDepth(byte value)
The bit depth.
|
void |
setColorType(int value)
Gets or sets the type of the color.
|
void |
setCompressionLevel(int value)
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
|
void |
setFilterType(int value)
Gets or sets the filter type used during png file save process.
|
void |
setProgressive(boolean value)
Gets or sets a value indicating whether this
PngOptions is progressive. |
void |
setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
getInterruptionToken, getLayers, getPalette, getPc3File, getResolutionSettings, getRotation, getSource, getTimeout, getUserWatermarkColor, getUserWatermarkText, getVectorRasterizationOptions, setInterruptionToken, setLayers, setPalette, setPc3File, setResolutionSettings, setRotation, setSource, setTimeout, setUserWatermarkColor, setUserWatermarkText, setVectorRasterizationOptions
public PngOptions()
Initializes a new instance of the PngOptions
class.
public PngOptions(PngOptions pngOptions)
Initializes a new instance of the JpegOptions
class.
pngOptions
- The PNG options.public long getTargetFormat()
getTargetFormat
in class ImageOptionsBase
public com.aspose.cad.xmp.XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
getXmpData
in class ImageOptionsBase
public void setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
Gets or sets the XMP metadata container.
setXmpData
in class ImageOptionsBase
value
- The XMP data container.public int getColorType()
Gets or sets the type of the color.
public void setColorType(int value)
Gets or sets the type of the color.
value
- The type of the color.public boolean getProgressive()
Gets or sets a value indicating whether this PngOptions
is progressive.
true
if progressive; otherwise, false
.public void setProgressive(boolean value)
Gets or sets a value indicating whether this PngOptions
is progressive.
value
- true
if progressive; otherwise, false
.public int getFilterType()
Gets or sets the filter type used during png file save process.
public void setFilterType(int value)
Gets or sets the filter type used during png file save process.
public int getCompressionLevel()
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
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.
public byte getBitDepth()
The bit depth.
public void setBitDepth(byte value)
The bit depth.