@Immutable public enum ImagePixelSpecification extends java.lang.Enum<ImagePixelSpecification>
| Enum Constant and Description |
|---|
A_GRAY |
ABGR |
ARGB |
BGR |
BGRA |
GRAY |
GRAY_A |
RGB |
RGBA |
| Modifier and Type | Field and Description |
|---|---|
com.facebook.spectrum.image.ImagePixelSpecification.AlphaInfo |
alphaInfo
Information about the optional alpha channel
|
int |
bytesPerPixel
The number of bytes per pixel (covering all its components).
|
com.facebook.spectrum.image.ImagePixelSpecification.ColorModel |
colorModel
Number of color components and how to interpret them
|
com.facebook.spectrum.image.ImagePixelSpecification.ComponentsOrder |
componentsOrder
Order of the components in memory representation .
|
| Modifier and Type | Method and Description |
|---|---|
static ImagePixelSpecification |
from(android.graphics.Bitmap.Config bitmapConfig) |
java.lang.String |
toString() |
static ImagePixelSpecification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImagePixelSpecification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImagePixelSpecification RGB
public static final ImagePixelSpecification RGBA
public static final ImagePixelSpecification GRAY
public static final ImagePixelSpecification GRAY_A
public static final ImagePixelSpecification A_GRAY
public static final ImagePixelSpecification ARGB
public static final ImagePixelSpecification BGR
public static final ImagePixelSpecification BGRA
public static final ImagePixelSpecification ABGR
public final com.facebook.spectrum.image.ImagePixelSpecification.ColorModel colorModel
public final int bytesPerPixel
public final com.facebook.spectrum.image.ImagePixelSpecification.AlphaInfo alphaInfo
public final com.facebook.spectrum.image.ImagePixelSpecification.ComponentsOrder componentsOrder
public static ImagePixelSpecification[] values()
for (ImagePixelSpecification c : ImagePixelSpecification.values()) System.out.println(c);
public static ImagePixelSpecification valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ImagePixelSpecification from(android.graphics.Bitmap.Config bitmapConfig)
public java.lang.String toString()
toString in class java.lang.Enum<ImagePixelSpecification>