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 NIOBufferImageTypeThe INTENSITY typestatic final NIOBufferImageTypeThe INTENSITY_ALPHA typefinal StringThe type identifierstatic final NIOBufferImageTypeThe RGB typestatic final NIOBufferImageTypeThe RGBA typefinal intThe buffer allocation per pixel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NIOBufferImageTypegetType(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
-