- All Implemented Interfaces:
Serializable
,Comparable<Format>
,Constable
Used to identify the memory format of image data.
New entries may be added in future versions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioneach pixel is a 1-bit quantity holding an alpha value.each pixel is a 8-bit quantity holding an alpha value.each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red, then green, then blue.no such format exists or is supported.each pixel is a 16-bit quantity with red in the upper 5 bits, then green in the middle 6 bits, and blue in the lower 5 bits.each pixel is a 32-bit quantity, with the upper 8 bits unused.like RGB24 but with 10bpc.3 floats, R, G, B.4 floats, R, G, B, A. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gnome.glib.Type
getType()
Get the CairoFormat GTypeint
getValue()
Return the value of this enumstatic Format
of
(int value) Returns the enum member for the given value.static Format
Returns the enum constant of this class with the specified name.static Format[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
no such format exists or is supported. -
ARGB32
each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red, then green, then blue. The 32-bit quantities are stored native-endian. Pre-multiplied alpha is used. (That is, 50% transparent red is 0x80800000, not 0x80ff0000.)- Since:
- 1.0
-
RGB24
each pixel is a 32-bit quantity, with the upper 8 bits unused. Red, Green, and Blue are stored in the remaining 24 bits in that order.- Since:
- 1.0
-
A8
-
A1
each pixel is a 1-bit quantity holding an alpha value. Pixels are packed together into 32-bit quantities. The ordering of the bits matches the endianness of the platform. On a big-endian machine, the first pixel is in the uppermost bit, on a little-endian machine the first pixel is in the least-significant bit.- Since:
- 1.0
-
RGB16_565
each pixel is a 16-bit quantity with red in the upper 5 bits, then green in the middle 6 bits, and blue in the lower 5 bits.- Since:
- 1.2
-
RGB30
-
RGB96F
-
RGBA128F
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Return the value of this enum- Returns:
- the value
-
of
Returns the enum member for the given value.- Parameters:
value
- the value of the enum member- Returns:
- the enum member for the given value
-
getType
public static org.gnome.glib.Type getType()Get the CairoFormat GType- Returns:
- the GType
-