PngColorType

Inheritance: java.lang.Object

public final class PngColorType

Represents the PNG image color type.

Fields

Field Description
Grayscale Represents the color type where each pixel is a grayscale sample.
Truecolor Represents the color type where each pixel is an R,G,B triple.
IndexedColor Represents the color type where each pixel is a palette index; a PLTE chunk shall appear.
GrayscaleWithAlpha Represents the color type where each pixel is a grayscale sample followed by an alpha sample.
TruecolorWithAlpha Represents the color type where each pixel is an R,G,B triple followed by an alpha sample.

Grayscale

public static final int Grayscale

Represents the color type where each pixel is a grayscale sample.

Truecolor

public static final int Truecolor

Represents the color type where each pixel is an R,G,B triple.

IndexedColor

public static final int IndexedColor

Represents the color type where each pixel is a palette index; a PLTE chunk shall appear.

GrayscaleWithAlpha

public static final int GrayscaleWithAlpha

Represents the color type where each pixel is a grayscale sample followed by an alpha sample.

TruecolorWithAlpha

public static final int TruecolorWithAlpha

Represents the color type where each pixel is an R,G,B triple followed by an alpha sample.