Class PngImagingParameters
java.lang.Object
org.apache.commons.imaging.ImagingParameters<E>
org.apache.commons.imaging.common.XmpImagingParameters<PngImagingParameters>
org.apache.commons.imaging.formats.png.PngImagingParameters
PNG format parameters.
- Since:
- 1.0-alpha3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
List<? extends AbstractPngText>
boolean
boolean
boolean
Indicates 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.XmpImagingParameters
getXmpXml, setXmpXml
Methods inherited from class org.apache.commons.imaging.ImagingParameters
asThis, getBufferedImageFactory, getFileName, getPixelDensity, isStrict, setBufferedImageFactory, setFileName, setPixelDensity, setStrict
-
Field Details
-
DEFAULT_BIT_DEPTH
- See Also:
-
-
Constructor Details
-
PngImagingParameters
public PngImagingParameters()
-
-
Method Details
-
getBitDepth
-
getPhysicalScale
-
getTextChunks
-
isForceIndexedColor
-
isForceTrueColor
-
isPredictorEnabled
Indicates that the PNG write operation should enable the predictor.- Returns:
- true if the predictor is enabled; otherwise, false.
-
setBitDepth
-
setForceIndexedColor
-
setForceTrueColor
-
setPhysicalScale
-
setPredictorEnabled
Sets 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:
- this
-
setTextChunks
-