Package com.massifmaps.graphics
Class ColorFormat
java.lang.Object
com.massifmaps.graphics.ColorFormat
Possible image formats.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceThe accepted values of this constant namespace. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAn image format that describes images with four channels, one for each color: blue, green and red
and one for alpha.static final intAn image format that describes images with a single color channel.static final intAn image format that describes images with two channels, one for color and the other
for alpha.static final intAn image format that describes images with three channels, one for each color: red, green and blue.static final intAn image format that describes images with three channels, one for each color: red, green, and blue.
Red and blue colors are each packed into 5 bits, green into 6 bits.static final intAn image format that describes images with four channels, one for each color: red, green and blue
and one for alpha.static final intAn image format that describes images with four channels, one for each color: red, green, and blue
and one for alpha.static final intOptions for identifiny unsupported image formats. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COLOR_FORMAT_UNSUPPORTED
public static final int COLOR_FORMAT_UNSUPPORTEDOptions for identifiny unsupported image formats.- See Also:
-
COLOR_FORMAT_GRAYSCALE
public static final int COLOR_FORMAT_GRAYSCALEAn image format that describes images with a single color channel.- See Also:
-
COLOR_FORMAT_GRAYSCALE_ALPHA
public static final int COLOR_FORMAT_GRAYSCALE_ALPHAAn image format that describes images with two channels, one for color and the other
for alpha.- See Also:
-
COLOR_FORMAT_RGB
public static final int COLOR_FORMAT_RGBAn image format that describes images with three channels, one for each color: red, green and blue.- See Also:
-
COLOR_FORMAT_RGBA
public static final int COLOR_FORMAT_RGBAAn image format that describes images with four channels, one for each color: red, green and blue
and one for alpha.- See Also:
-
COLOR_FORMAT_BGRA
public static final int COLOR_FORMAT_BGRAAn image format that describes images with four channels, one for each color: blue, green and red
and one for alpha. This color format will be converted to RGBA.- See Also:
-
COLOR_FORMAT_RGBA_4444
public static final int COLOR_FORMAT_RGBA_4444An image format that describes images with four channels, one for each color: red, green, and blue
and one for alpha. Each color is only four bits. This color format will be converted to RGBA.- See Also:
-
COLOR_FORMAT_RGB_565
public static final int COLOR_FORMAT_RGB_565An image format that describes images with three channels, one for each color: red, green, and blue.
Red and blue colors are each packed into 5 bits, green into 6 bits. This color format will be converted to RGB.- See Also:
-
-
Constructor Details
-
ColorFormat
public ColorFormat()
-