public enum NPixelType extends Enum<NPixelType> implements com.neurotec.lang.NEnum
| Enum Constant and Description |
|---|
GRAYSCALE
Grayscale.
|
RGB
RGB.
|
UNDEFINED
Undefined.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeIndexed()
Checks whether the specified pixel type can be indexed.
|
static NPixelType |
get(int value)
Gets NPixelType specified by enumeration value.
|
int |
getValue()
Gets the enumeration value of the current object.
|
boolean |
isValid()
Checks whether the specified pixel type is valid.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static NPixelType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NPixelType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NPixelType UNDEFINED
public static final NPixelType GRAYSCALE
public static final NPixelType RGB
public static NPixelType[] values()
for (NPixelType c : NPixelType.values()) System.out.println(c);
public static NPixelType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static com.neurotec.lang.NType nativeTypeOf()
public static NPixelType get(int value)
value - Enumeration value.public int getValue()
getValue in interface com.neurotec.lang.NEnumpublic boolean isValid()
public boolean canBeIndexed()
Copyright © 2016 Neurotechnology. All rights reserved.