Enum TupleType
- All Implemented Interfaces:
Serializable, Comparable<TupleType>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionB/W, but uses 1 byte (8 bits) per pixel.B/W + bit mask, uses 2 bytes per pixel.1 bit B/W.CMYK color.CMYK color + alpha.Grayscale, as PGM.Grayscale + alpha.RGB color, as PPM.RGB color + alpha. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTupleType(int samplesPerPixel, int minMaxSample, int maxMaxSample, int transparency) -
Method Summary
Modifier and TypeMethodDescriptionprivate static TupleType(package private) static TupleType(package private) static TupleTypeforPAM(ImageTypeSpecifier type) (package private) static TupleType(package private) static TupleTypeforPNM(ImageTypeSpecifier type) intintbooleanisValidMaxSample(int maxSample) static TupleTypeReturns the enum constant of this type with the specified name.static TupleType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BLACKANDWHITE
B/W, but uses 1 byte (8 bits) per pixel. Black is zero (opposite of PBM) -
BLACKANDWHITE_ALPHA
B/W + bit mask, uses 2 bytes per pixel. Black is zero (opposite of PBM) -
GRAYSCALE
Grayscale, as PGM. -
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
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 nameNullPointerException- if the argument is null
-
getTransparency
public int getTransparency() -
getSamplesPerPixel
public int getSamplesPerPixel() -
isValidMaxSample
public boolean isValidMaxSample(int maxSample) -
forPNM
-
forPNM
-
filterPNM
-
forPAM
-
forPAM
-