public static enum PixelFormat.Type extends Enum<PixelFormat.Type>
PixelFormat
.Enum Constant and Description |
---|
BYTE_BGRA
The pixels are stored in adjacent bytes with the non-premultiplied
components stored in order of increasing index:
blue, green, red, alpha.
|
BYTE_BGRA_PRE
The pixels are stored in adjacent bytes with the premultiplied
components stored in order of increasing index:
blue, green, red, alpha.
|
BYTE_INDEXED
The 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 the
PixelFormat object. |
BYTE_RGB
The opaque pixels are stored in adjacent bytes with the color
components stored in order of increasing index:
red, green, blue.
|
INT_ARGB
The 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_PRE
The pixels are stored in 32-bit integers with the premultiplied
components stored in order, from MSb to LSb:
alpha, red, green, blue.
|
Modifier and Type | Method and Description |
---|---|
static PixelFormat.Type |
valueOf(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.
|
public static final PixelFormat.Type INT_ARGB_PRE
public static final PixelFormat.Type INT_ARGB
public static final PixelFormat.Type BYTE_BGRA_PRE
public static final PixelFormat.Type BYTE_BGRA
public static final PixelFormat.Type BYTE_RGB
public static final PixelFormat.Type BYTE_INDEXED
PixelFormat
object.public static PixelFormat.Type[] values()
for (PixelFormat.Type c : PixelFormat.Type.values()) System.out.println(c);
public static PixelFormat.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullSubmit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.