Class PngColorType

java.lang.Object
com.drew.imaging.png.PngColorType

public class PngColorType extends Object
Author:
Drew Noakes https://drewnoakes.com
  • Field Details

    • 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.
  • Method Details

    • fromNumericValue

      public static PngColorType fromNumericValue(int numericValue)
    • getNumericValue

      public int getNumericValue()
    • getDescription

      public String getDescription()
    • getAllowedBitDepths

      public int[] getAllowedBitDepths()