public final enum

ColorFormat

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.carto.graphics.ColorFormat

Class Overview

Possible image formats.

Summary

Enum Values
ColorFormat  COLOR_FORMAT_BGRA  An image format that describes images with four channels, one for each color: blue, green and red
and one for alpha. 
ColorFormat  COLOR_FORMAT_GRAYSCALE  An image format that describes images with a single color channel. 
ColorFormat  COLOR_FORMAT_GRAYSCALE_ALPHA  An image format that describes images with two channels, one for color and the other
for alpha. 
ColorFormat  COLOR_FORMAT_RGB  An image format that describes images with three channels, one for each color: red, green and blue. 
ColorFormat  COLOR_FORMAT_RGBA  An image format that describes images with four channels, one for each color: red, green and blue
and one for alpha. 
ColorFormat  COLOR_FORMAT_RGBA_4444  An image format that describes images with four channels, one for each color: red, green, and blue
and one for alpha. 
ColorFormat  COLOR_FORMAT_RGB_565  An image format that describes images with three channels, one for each color: red, green, and blue. 
ColorFormat  COLOR_FORMAT_UNSUPPORTED  Options for identifiny unsupported image formats. 
Public Methods
static ColorFormat swigToEnum(int swigValue)
final int swigValue()
static ColorFormat valueOf(String name)
final static ColorFormat[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ColorFormat COLOR_FORMAT_BGRA

An 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.

public static final ColorFormat COLOR_FORMAT_GRAYSCALE

An image format that describes images with a single color channel.

public static final ColorFormat COLOR_FORMAT_GRAYSCALE_ALPHA

An image format that describes images with two channels, one for color and the other
for alpha.

public static final ColorFormat COLOR_FORMAT_RGB

An image format that describes images with three channels, one for each color: red, green and blue.

public static final ColorFormat COLOR_FORMAT_RGBA

An image format that describes images with four channels, one for each color: red, green and blue
and one for alpha.

public static final ColorFormat COLOR_FORMAT_RGBA_4444

An 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.

public static final ColorFormat COLOR_FORMAT_RGB_565

An 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.

public static final ColorFormat COLOR_FORMAT_UNSUPPORTED

Options for identifiny unsupported image formats.

Public Methods

public static ColorFormat swigToEnum (int swigValue)

public final int swigValue ()

public static ColorFormat valueOf (String name)

public static final ColorFormat[] values ()