Class PngImagingParameters


  • public class PngImagingParameters
    extends XmpImagingParameters
    Png format parameters.
    Since:
    1.0-alpha3
    • Constructor Detail

      • PngImagingParameters

        public PngImagingParameters()
    • Method Detail

      • getBitDepth

        public byte getBitDepth()
      • setBitDepth

        public void setBitDepth​(byte bitDepth)
      • isForceIndexedColor

        public boolean isForceIndexedColor()
      • setForceIndexedColor

        public void setForceIndexedColor​(boolean forceIndexedColor)
      • isForceTrueColor

        public boolean isForceTrueColor()
      • setForceTrueColor

        public void setForceTrueColor​(boolean forceTrueColor)
      • setPhysicalScale

        public void setPhysicalScale​(PhysicalScale physicalScale)
      • getTextChunks

        public List<? extends PngText> getTextChunks()
      • setTextChunks

        public void setTextChunks​(List<? extends PngText> textChunks)
      • isPredictorEnabled

        public boolean isPredictorEnabled()
        Indicates that the PNG write operation should enable the predictor.
        Returns:
        true if the predictor is enabled; otherwise, false.
      • setPredictorEnabled

        public void setPredictorEnabled​(boolean predictorEnabled)
        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.