Package org.web3d.image
Class NIOBufferImageType
java.lang.Object
org.web3d.image.NIOBufferImageType
Constant object identifiers of the image type contained by an
NIOBufferImage
.- Version:
- $Revision: 1.2 $
- Author:
- Rex Melton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NIOBufferImageType
The INTENSITY typestatic final NIOBufferImageType
The INTENSITY_ALPHA typefinal String
The type identifierstatic final NIOBufferImageType
The RGB typestatic final NIOBufferImageType
The RGBA typefinal int
The buffer allocation per pixel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NIOBufferImageType
getType
(int cmp) Return the type object that corresponds to the specified number of components per pixel.toString()
Return the String identifier of the type
-
Field Details
-
INTENSITY
The INTENSITY type -
INTENSITY_ALPHA
The INTENSITY_ALPHA type -
RGB
The RGB type -
RGBA
The RGBA type -
name
The type identifier -
size
public final int sizeThe buffer allocation per pixel
-
-
Constructor Details
-
NIOBufferImageType
Constructor- Parameters:
name
- The type identifiersize
- The buffer allocation per pixel of this type
-
-
Method Details
-
getType
Return the type object that corresponds to the specified number of components per pixel. If unknown, then null is returned.- Parameters:
cmp
- The number of components per pixel- Returns:
- The type object
-
toString
-