|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<UNCPixFormat>
com.xinapse.multisliceimage.UNC.UNCPixFormat
public enum UNCPixFormat
This class represents the pixel formats (data types) that can be used in UNC images.
| Enum Constant Summary | |
|---|---|
BYTE
UNCPixFormat for unsigned byte (8-bit) pixel values. |
|
COLOR
UNCPixFormat for colour pixel (16-bit) values. |
|
COLORPACKED
UNCPixFormat for packed colour (r,g,b,n) (4x8-bit) pixel values. |
|
COMPLEX
UNCPixFormat for complex float pixel values. |
|
DOUBLE
UNCPixFormat for double-precision (64-bit) pixel values. |
|
GREY
UNCPixFormat for grey (aka short 16-bit) pixel values. |
|
LONG
UNCPixFormat for 32-bit signed int pixel values. |
|
REAL
UNCPixFormat for floating-point (32-bit) pixel values. |
|
SHORT
UNCPixFormat for short (16-bit) pixel values. |
|
UNKNOWN
UNCPixFormat for unknown type pixel values. |
|
USERPACKED
UNCPixFormat for int (32-bit) pixel values. |
|
| Method Summary | |
|---|---|
int |
getBytesPerPixel()
Returns the number of bytes per pixel for this UNCPixFormat. |
static UNCPixFormat |
getInstance(PixelDataType fmt)
Returns the UNCPixFormat corresponding to a PixelDataType. |
PixelDataType |
getPixelDataType()
Returns the PixelDataType corresponding to this UNCPixFormat. |
java.lang.String |
toString()
Returns a java.lang.String describing this data format. |
static UNCPixFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UNCPixFormat[] |
values()
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final UNCPixFormat UNKNOWN
public static final UNCPixFormat BYTE
public static final UNCPixFormat SHORT
public static final UNCPixFormat LONG
public static final UNCPixFormat REAL
public static final UNCPixFormat COMPLEX
public static final UNCPixFormat DOUBLE
public static final UNCPixFormat GREY
public static final UNCPixFormat COLOR
public static final UNCPixFormat COLORPACKED
public static final UNCPixFormat USERPACKED
| Method Detail |
|---|
public static UNCPixFormat[] values()
for (UNCPixFormat c : UNCPixFormat.values()) System.out.println(c);
public static UNCPixFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic int getBytesPerPixel()
public java.lang.String toString()
toString in class java.lang.Enum<UNCPixFormat>public PixelDataType getPixelDataType()
public static UNCPixFormat getInstance(PixelDataType fmt)
throws UNCException
fmt - a PixelDataType corresponding to the returned UNCPixFormat.
UNCException - if there is no corresponding UNCPixFormat.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||