Class PngImagingParameters

    • Field Detail

      • bitDepth

        private byte bitDepth
        Bit depth. Default value is 8.
      • forceIndexedColor

        private boolean forceIndexedColor
      • forceTrueColor

        private boolean forceTrueColor
      • predictorEnabled

        private boolean predictorEnabled
      • physicalScale

        private PhysicalScale physicalScale
        Used in write operations to indicate the Physical Scale - sCAL.

        Valid values: PhysicalScale

        See Also:
        PhysicalScale
      • textChunks

        private java.util.List<? extends AbstractPngText> textChunks

        Only used when writing PNG images.

        Valid values: a list of WriteTexts.

    • Constructor Detail

      • PngImagingParameters

        public PngImagingParameters()
    • Method Detail

      • getBitDepth

        public byte getBitDepth()
      • getTextChunks

        public java.util.List<? extends AbstractPngText> getTextChunks()
      • isForceIndexedColor

        public boolean isForceIndexedColor()
      • isForceTrueColor

        public boolean isForceTrueColor()
      • isPredictorEnabled

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

        public PngImagingParameters setForceIndexedColor​(boolean forceIndexedColor)
      • setPredictorEnabled

        public PngImagingParameters 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.
        Returns:
        this instance.