- All Implemented Interfaces:
- Serializable,- Comparable<PixelFormat.Type>,- Constable
- Enclosing class:
- PixelFormat<T extends Buffer>
public static enum PixelFormat.Type extends Enum<PixelFormat.Type>
An enum describing the in-array storage format of a single pixel
 managed by a 
PixelFormat.- Since:
- JavaFX 2.2
- 
Nested Class SummaryNested classes/interfaces declared in class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants Enum Constant Description BYTE_BGRAThe pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha.BYTE_BGRA_PREThe pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha.BYTE_INDEXEDThe pixel colors are referenced by byte indices stored in the pixel array, with the byte interpreted as an unsigned index into a list of colors provided by thePixelFormatobject.BYTE_RGBThe opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue.INT_ARGBThe pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.INT_ARGB_PREThe pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.
- 
Method SummaryModifier and Type Method Description static PixelFormat.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static PixelFormat.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
INT_ARGB_PREThe pixels are stored in 32-bit integers with the premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.
- 
INT_ARGBThe pixels are stored in 32-bit integers with the non-premultiplied components stored in order, from MSb to LSb: alpha, red, green, blue.
- 
BYTE_BGRA_PREThe pixels are stored in adjacent bytes with the premultiplied components stored in order of increasing index: blue, green, red, alpha.
- 
BYTE_BGRAThe pixels are stored in adjacent bytes with the non-premultiplied components stored in order of increasing index: blue, green, red, alpha.
- 
BYTE_RGBThe opaque pixels are stored in adjacent bytes with the color components stored in order of increasing index: red, green, blue.
- 
BYTE_INDEXEDThe pixel colors are referenced by byte indices stored in the pixel array, with the byte interpreted as an unsigned index into a list of colors provided by thePixelFormatobject.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-