Class ImageWorker.PNGImageWriteParam

  • Enclosing class:
    ImageWorker

    public static final class ImageWorker.PNGImageWriteParam
    extends ImageWriteParam
    Workaround class for compressing PNG using the default PNGImageEncoder shipped with the JDK.

    PNGImageWriter does not support ImageWriteParam.setCompressionMode(int) set to ImageWriteParam.MODE_EXPLICIT, it only allows ImageWriteParam.MODE_DEFAULT.

    Author:
    Simone Giannecchini
    • Field Summary

      • Fields inherited from class ImageWriteParam

        canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, compressionMode, compressionQuality, compressionType, compressionTypes, locale, MODE_COPY_FROM_METADATA, MODE_DEFAULT, MODE_DISABLED, MODE_EXPLICIT, preferredTileSizes, progressiveMode, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, tilingMode, tilingSet
      • Fields inherited from class IIOParam

        controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
    • Constructor Summary

      Constructors 
      Constructor Description
      PNGImageWriteParam()
      Default constructor.
    • Method Summary

      • Methods inherited from class ImageWriteParam

        canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, getBitRate, getCompressionMode, getCompressionQuality, getCompressionQualityDescriptions, getCompressionQualityValues, getCompressionType, getCompressionTypes, getLocale, getLocalizedCompressionTypeName, getPreferredTileSizes, getProgressiveMode, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTilingMode, isCompressionLossless, setCompressionMode, setCompressionQuality, setCompressionType, setProgressiveMode, setTiling, setTilingMode, unsetCompression, unsetTiling
      • Methods inherited from class IIOParam

        activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsampling
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PNGImageWriteParam

        public PNGImageWriteParam()
        Default constructor.