Enum Constant Summary
Enum Constants
4-byte format using 1 byte per each color component and 1 byte for transparency.
3-byte format using 1 byte per each color component.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
byte[]
Returns FOURCC (four character code).
byte[]
Converts BufferedImage to raw image data.
toImage (byte[] data,
int width,
int height)
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
BGR24
3-byte format using 1 byte per each color component.
ABGR
4-byte format using 1 byte per each color component and 1 byte for transparency.
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null
getFourCC
public byte[] getFourCC ()
Returns FOURCC (four character code).
Specified by:
getFourCC in interface ImageFormat
Returns:
FOURCC
See Also:
toImage
Specified by:
toImage in interface ImageFormat
Parameters:
data - raw image data
width - image width
height - image height
Returns:
BufferedImage
toBytes
Converts BufferedImage to raw image data.
Specified by:
toBytes in interface ImageFormat
Parameters:
image - image
Returns:
raw data