public final class PngConfig
extends java.lang.Object
PngImage
when decoding an image.
Instances of this class are immutable and can only be constructed
using the PngConfig.Builder
inner-class.Modifier and Type | Class and Description |
---|---|
static class |
PngConfig.Builder
Builder class used to construct
PngConfig instances. |
Modifier and Type | Field and Description |
---|---|
static int |
READ_ALL
Read the entire image
|
static int |
READ_EXCEPT_DATA
Read the entire image, skipping over the image data
|
static int |
READ_EXCEPT_METADATA
Read the entire image, skipping over all non-critical chunks except tRNS and gAMA
|
static int |
READ_HEADER
Read only the header chunk
|
static int |
READ_UNTIL_DATA
Read all the metadata up to the image data
|
Modifier and Type | Method and Description |
---|---|
boolean |
getConvertIndexed()
Return sthe current indexed image conversion setting.
|
float |
getDefaultGamma()
Returns the current default gamma value.
|
float |
getDisplayExponent()
Returns the current display exponent.
|
boolean |
getGammaCorrect()
Returns the current gamma correction setting.
|
boolean |
getProgressive()
Returns the current progressive display setting.
|
int |
getReadLimit()
Returns the current read limit setting.
|
boolean |
getReduce16()
Returns the current 16-bit reduction setting.
|
java.awt.Rectangle |
getSourceRegion()
Returns the source region to be used.
|
int |
getSourceXSubsampling()
Returns the number of source columns to advance for each pixel.
|
int |
getSourceYSubsampling()
Returns the number of rows to advance for each pixel.
|
int |
getSubsamplingXOffset()
Returns the horizontal offset of the subsampling grid.
|
int |
getSubsamplingYOffset()
Returns the vertical offset of the subsampling grid.
|
boolean |
getWarningsFatal()
Returns whether warnings are treated as fatal errors.
|
public static final int READ_ALL
public static final int READ_HEADER
public static final int READ_UNTIL_DATA
public static final int READ_EXCEPT_DATA
public static final int READ_EXCEPT_METADATA
public boolean getConvertIndexed()
PngConfig.Builder.convertIndexed
public boolean getReduce16()
PngConfig.Builder.reduce16
public float getDefaultGamma()
PngConfig.Builder.defaultGamma
public boolean getGammaCorrect()
PngConfig.Builder.gammaCorrect
public boolean getProgressive()
PngConfig.Builder.progressive
public float getDisplayExponent()
PngConfig.Builder.displayExponent
public int getReadLimit()
READ_ALL
,READ_HEADER
,READ_UNTIL_DATA
,READ_EXCEPT_DATA
,READ_EXCEPT_METADATA
PngConfig.Builder.readLimit
public boolean getWarningsFatal()
PngConfig.Builder.warningsFatal
public java.awt.Rectangle getSourceRegion()
PngConfig.Builder.sourceRegion
public int getSourceXSubsampling()
public int getSourceYSubsampling()
public int getSubsamplingXOffset()
public int getSubsamplingYOffset()