Package be.uclouvain.orthanc
Enum PixelFormat
- java.lang.Object
-
- java.lang.Enum<PixelFormat>
-
- be.uclouvain.orthanc.PixelFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PixelFormat>
public enum PixelFormat extends java.lang.Enum<PixelFormat>
The memory layout of the pixels of an image.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BGRA32
Color image in BGRA32 format.FLOAT32
Graylevel, floating-point 32bpp image.GRAYSCALE16
Graylevel, unsigned 16bpp image.GRAYSCALE32
Graylevel, unsigned 32bpp image.GRAYSCALE64
Graylevel, unsigned 64bpp image.GRAYSCALE8
Graylevel 8bpp image.RGB24
Color image in RGB24 format.RGB48
Color image in RGB48 format.RGBA32
Color image in RGBA32 format.SIGNED_GRAYSCALE16
Graylevel, signed 16bpp image.UNKNOWN
Unknown pixel format
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static PixelFormat
getInstance(int value)
Return the enumeration value that corresponds to an integer value of interest.int
getValue()
Get the integer value corresponding to this enumeration value.static PixelFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PixelFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAYSCALE8
public static final PixelFormat GRAYSCALE8
Graylevel 8bpp image. The image is graylevel. Each pixel is unsigned and stored in one byte.
-
GRAYSCALE16
public static final PixelFormat GRAYSCALE16
Graylevel, unsigned 16bpp image. The image is graylevel. Each pixel is unsigned and stored in two bytes.
-
SIGNED_GRAYSCALE16
public static final PixelFormat SIGNED_GRAYSCALE16
Graylevel, signed 16bpp image. The image is graylevel. Each pixel is signed and stored in two bytes.
-
RGB24
public static final PixelFormat RGB24
Color image in RGB24 format. This format describes a color image. The pixels are stored in 3 consecutive bytes. The memory layout is RGB.
-
RGBA32
public static final PixelFormat RGBA32
Color image in RGBA32 format. This format describes a color image. The pixels are stored in 4 consecutive bytes. The memory layout is RGBA.
-
UNKNOWN
public static final PixelFormat UNKNOWN
Unknown pixel format
-
RGB48
public static final PixelFormat RGB48
Color image in RGB48 format. This format describes a color image. The pixels are stored in 6 consecutive bytes. The memory layout is RRGGBB.
-
GRAYSCALE32
public static final PixelFormat GRAYSCALE32
Graylevel, unsigned 32bpp image. The image is graylevel. Each pixel is unsigned and stored in four bytes.
-
FLOAT32
public static final PixelFormat FLOAT32
Graylevel, floating-point 32bpp image. The image is graylevel. Each pixel is floating-point and stored in four bytes.
-
BGRA32
public static final PixelFormat BGRA32
Color image in BGRA32 format. This format describes a color image. The pixels are stored in 4 consecutive bytes. The memory layout is BGRA.
-
GRAYSCALE64
public static final PixelFormat GRAYSCALE64
Graylevel, unsigned 64bpp image. The image is graylevel. Each pixel is unsigned and stored in eight bytes.
-
-
Method Detail
-
values
public static PixelFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PixelFormat c : PixelFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PixelFormat valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getInstance
protected static PixelFormat getInstance(int value)
Return the enumeration value that corresponds to an integer value of interest.- Parameters:
value
- The integer value.- Returns:
- The enumeration value.
-
getValue
public int getValue()
Get the integer value corresponding to this enumeration value.- Returns:
- The integer value.
-
-