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
PngOptions 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. |
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(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
|
void |
validate()
The options validation routine.
|
clone, getBufferSizeHint, getMultiPageOptions, getPalette, getProgressEventHandler, getResolutionSettings, getSource, getVectorRasterizationOptions, setBufferSizeHint, setMultiPageOptions, setPalette, setProgressEventHandler, setResolutionSettings, setSource, setVectorRasterizationOptions
dispose, getDisposed
public PngOptions()
Initializes a new instance of the PngOptions
class.
public PngOptions(PngOptions pngOptions)
Initializes a new instance of the PngOptions
class.
pngOptions
- The PNG options.public XmpPacketWrapper getXmpData()
Gets or sets the XMP metadata container.
Value: The XMP data container.getXmpData
in class ImageOptionsBase
public void setXmpData(XmpPacketWrapper value)
Gets or sets the XMP metadata container.
Value: The XMP data container.setXmpData
in class ImageOptionsBase
public final int getColorType()
Gets or sets the type of the color.
Value: The type of the color.public final void setColorType(int value)
Gets or sets the type of the color.
Value: The type of the color.public final boolean getProgressive()
Gets or sets a value indicating whether this PngOptions
is progressive.
true
if progressive; otherwise, false
.public final void setProgressive(boolean value)
Gets or sets a value indicating whether this PngOptions
is progressive.
true
if progressive; otherwise, false
.public final int getFilterType()
Gets or sets the filter type used during png file save process.
public final void setFilterType(int value)
Gets or sets the filter type used during png file save process.
public final int getCompressionLevel()
The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.
public final 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 final byte getBitDepth()
The bit depth.
public final void setBitDepth(byte value)
The bit depth.
public final void validate()
The options validation routine.
FrameworkException
com.aspose.ms.System.ArgumentOutOfRangeException
Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.