JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
B/W, but uses 1 byte (8 bits) per pixel.
B/W + bit mask, uses 2 bytes per pixel.
Field Summary
Fields
private final int
private final int
private final int
private final int
Constructor Summary
Constructors
private
TupleType (int samplesPerPixel,
int minMaxSample,
int maxMaxSample,
int transparency)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
int
boolean
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
BLACKANDWHITE
B/W, but uses 1 byte (8 bits) per pixel. Black is zero (opposite of PBM)
BLACKANDWHITE_ALPHA
public static final TupleType BLACKANDWHITE_ALPHA
B/W + bit mask, uses 2 bytes per pixel. Black is zero (opposite of PBM)
GRAYSCALE
Grayscale, as PGM.
GRAYSCALE_ALPHA
public static final TupleType GRAYSCALE_ALPHA
Grayscale + alpha. YA order.
RGB
RGB color, as PPM. RGB order.
RGB_ALPHA
RGB color + alpha. RGBA order.
CMYK
CMYK color. CMYK order.
CMYK_ALPHA
CMYK color + alpha. CMYKA order.
BLACKANDWHITE_WHITE_IS_ZERO
public static final TupleType BLACKANDWHITE_WHITE_IS_ZERO
1 bit B/W. White is zero (as PBM)
Field Details
samplesPerPixel
private final int samplesPerPixel
minMaxSample
private final int minMaxSample
maxMaxSample
private final int maxMaxSample
transparency
private final int transparency
Constructor Details
TupleType
private TupleType (int samplesPerPixel,
int minMaxSample,
int maxMaxSample,
int 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
getTransparency
public int getTransparency ()
getSamplesPerPixel
public int getSamplesPerPixel ()
isValidMaxSample
public boolean isValidMaxSample (int maxSample)