Class PngColorType


  • public class PngColorType
    extends java.lang.Object
    • Field Detail

      • GREYSCALE

        public static final PngColorType GREYSCALE
        Each pixel is a greyscale sample.
      • TRUE_COLOR

        public static final PngColorType TRUE_COLOR
        Each pixel is an R,G,B triple.
      • INDEXED_COLOR

        public static final PngColorType INDEXED_COLOR
        Each pixel is a palette index. Seeing this value indicates that a PLTE chunk shall appear.
      • GREYSCALE_WITH_ALPHA

        public static final PngColorType GREYSCALE_WITH_ALPHA
        Each pixel is a greyscale sample followed by an alpha sample.
      • TRUE_COLOR_WITH_ALPHA

        public static final PngColorType TRUE_COLOR_WITH_ALPHA
        Each pixel is an R,G,B triple followed by an alpha sample.
      • _numericValue

        private final int _numericValue
      • _description

        private final java.lang.String _description
      • _allowedBitDepths

        private final int[] _allowedBitDepths
    • Constructor Detail

      • PngColorType

        private PngColorType​(int numericValue,
                             java.lang.String description,
                             int... allowedBitDepths)
    • Method Detail

      • fromNumericValue

        public static PngColorType fromNumericValue​(int numericValue)
      • getNumericValue

        public int getNumericValue()
      • getDescription

        public java.lang.String getDescription()
      • getAllowedBitDepths

        public int[] getAllowedBitDepths()