Package javax.media.j3d
Enum Class NioImageBuffer.ImageType
- All Implemented Interfaces:
Serializable
,Comparable<NioImageBuffer.ImageType>
,Constable
- Enclosing class:
NioImageBuffer
Used to specify the type of the image.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an image with 8-bit RGB color components, corresponding to a Windows-style BGR color model, with the colors Blue, Green, and Red stored in 3 consecutive bytes for each pixel.Represents an image with 8-bit RGB color components with Red, Green, and Blue, stored in 3 consecutive bytes for each pixel.Represents an image with 8-bit RGBA color components with Alpha, Blue, Green, and Red stored in 4 consecutive bytes for each pixel.Represents an image with 8-bit RGBA color components with Red, Green, Blue, and Alpha stored in 4 consecutive bytes for each pixel.Represents a unsigned byte grayscale image, non-indexed.Represents an image with 8-bit RGBA color components packed into integer pixels.Represents an image with 8-bit RGB color components, corresponding to a Windows- or Solaris- style BGR color model, with the colors Blue, Green, and Red packed into integer pixels.Represents an image with 8-bit RGB color components packed into integer pixels. -
Method Summary
Modifier and TypeMethodDescriptionstatic NioImageBuffer.ImageType
Returns the enum constant of this class with the specified name.static NioImageBuffer.ImageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TYPE_3BYTE_BGR
Represents an image with 8-bit RGB color components, corresponding to a Windows-style BGR color model, with the colors Blue, Green, and Red stored in 3 consecutive bytes for each pixel. The data buffer must be a ByteBuffer when using this imageType. -
TYPE_3BYTE_RGB
Represents an image with 8-bit RGB color components with Red, Green, and Blue, stored in 3 consecutive bytes for each pixel. The data buffer must be a ByteBuffer when using this imageType. -
TYPE_4BYTE_ABGR
Represents an image with 8-bit RGBA color components with Alpha, Blue, Green, and Red stored in 4 consecutive bytes for each pixel. The data buffer must be a ByteBuffer when using this imageType. -
TYPE_4BYTE_RGBA
Represents an image with 8-bit RGBA color components with Red, Green, Blue, and Alpha stored in 4 consecutive bytes for each pixel. The data buffer must be a ByteBuffer when using this imageType. -
TYPE_BYTE_GRAY
Represents a unsigned byte grayscale image, non-indexed. The data buffer must be a ByteBuffer when using this imageType. -
TYPE_INT_ARGB
Represents an image with 8-bit RGBA color components packed into integer pixels. The data buffer must be an IntBuffer when using this imageType. -
TYPE_INT_BGR
Represents an image with 8-bit RGB color components, corresponding to a Windows- or Solaris- style BGR color model, with the colors Blue, Green, and Red packed into integer pixels. The data buffer must be an IntBuffer when using this imageType. -
TYPE_INT_RGB
Represents an image with 8-bit RGB color components packed into integer pixels. The data buffer must be an IntBuffer when using this imageType.
-
-
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
-