Class PngImagingParameters
java.lang.Object
org.apache.commons.imaging.ImagingParameters<PngImagingParameters>
org.apache.commons.imaging.common.XmpImagingParameters<PngImagingParameters>
org.apache.commons.imaging.formats.png.PngImagingParameters
PNG format parameters.
- Since:
- 1.0-alpha3
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyteList<? extends AbstractPngText> booleanbooleanbooleanIndicates that the PNG write operation should enable the predictor.setBitDepth(byte bitDepth) setForceIndexedColor(boolean forceIndexedColor) setForceTrueColor(boolean forceTrueColor) setPhysicalScale(PhysicalScale physicalScale) setPredictorEnabled(boolean predictorEnabled) Sets the enabled status of the predictor.setTextChunks(List<? extends AbstractPngText> textChunks) Methods inherited from class org.apache.commons.imaging.common.XmpImagingParametersgetXmpXml, setXmpXmlMethods inherited from class org.apache.commons.imaging.ImagingParametersasThis, getBufferedImageFactory, getFileName, getPixelDensity, isStrict, setBufferedImageFactory, setFileName, setPixelDensity, setStrict
- 
Field Details- 
DEFAULT_BIT_DEPTH- See Also:
 
 
- 
- 
Constructor Details- 
PngImagingParameterspublic PngImagingParameters()
 
- 
- 
Method Details- 
getBitDepth
- 
getPhysicalScale
- 
getTextChunks
- 
isForceIndexedColor
- 
isForceTrueColor
- 
isPredictorEnabledIndicates that the PNG write operation should enable the predictor.- Returns:
- true if the predictor is enabled; otherwise, false.
 
- 
setBitDepth
- 
setForceIndexedColor
- 
setForceTrueColor
- 
setPhysicalScale
- 
setPredictorEnabledSets the enabled status of the predictor. When performing data compression on an image, a PNG predictor often results in a reduced file size. Predictors are particularly effective on photographic images, but may also work on graphics. The specification of a predictor may result in an increased processing time when writing an image, but will not affect the time required to read an image.- Parameters:
- predictorEnabled- true if a predictor is enabled; otherwise, false.
- Returns:
- thisinstance.
 
- 
setTextChunks
 
-