Enum BufferedImageType
- java.lang.Object
-
- java.lang.Enum<BufferedImageType>
-
- science.aist.imaging.api.domain.wrapper.implementation.BufferedImageType
-
- All Implemented Interfaces:
Serializable
,Comparable<BufferedImageType>
public enum BufferedImageType extends Enum<BufferedImageType>
Types of an buffered image
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Enum Constant Summary
Enum Constants Enum Constant Description TYPE_3BYTE_BGR
TYPE_4BYTE_ABGR
TYPE_4BYTE_ABGR_PRE
TYPE_BYTE_BINARY
TYPE_BYTE_GRAY
TYPE_BYTE_INDEXED
TYPE_CUSTOM
TYPE_INT_ARGB
TYPE_INT_ARGB_PRE
TYPE_INT_BGR
TYPE_INT_RGB
TYPE_USHORT_555_RGB
TYPE_USHORT_565_RGB
TYPE_USHORT_GRAY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedImageType
getForId(int id)
Gets the enum value for the given idstatic BufferedImageType
toBufferedImageType(ChannelType type)
Returns a compatible buffered image type for the given typestatic BufferedImageType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BufferedImageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TYPE_3BYTE_BGR
public static final BufferedImageType TYPE_3BYTE_BGR
-
TYPE_4BYTE_ABGR
public static final BufferedImageType TYPE_4BYTE_ABGR
-
TYPE_4BYTE_ABGR_PRE
public static final BufferedImageType TYPE_4BYTE_ABGR_PRE
-
TYPE_BYTE_BINARY
public static final BufferedImageType TYPE_BYTE_BINARY
-
TYPE_BYTE_GRAY
public static final BufferedImageType TYPE_BYTE_GRAY
-
TYPE_BYTE_INDEXED
public static final BufferedImageType TYPE_BYTE_INDEXED
-
TYPE_CUSTOM
public static final BufferedImageType TYPE_CUSTOM
-
TYPE_INT_ARGB
public static final BufferedImageType TYPE_INT_ARGB
-
TYPE_INT_ARGB_PRE
public static final BufferedImageType TYPE_INT_ARGB_PRE
-
TYPE_INT_BGR
public static final BufferedImageType TYPE_INT_BGR
-
TYPE_INT_RGB
public static final BufferedImageType TYPE_INT_RGB
-
TYPE_USHORT_555_RGB
public static final BufferedImageType TYPE_USHORT_555_RGB
-
TYPE_USHORT_565_RGB
public static final BufferedImageType TYPE_USHORT_565_RGB
-
TYPE_USHORT_GRAY
public static final BufferedImageType TYPE_USHORT_GRAY
-
-
Method Detail
-
values
public static BufferedImageType[] 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 (BufferedImageType c : BufferedImageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BufferedImageType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getForId
public static BufferedImageType getForId(int id)
Gets the enum value for the given id- Parameters:
id
- for which enum should be returned- Returns:
- enum for given id
-
toBufferedImageType
public static BufferedImageType toBufferedImageType(ChannelType type)
Returns a compatible buffered image type for the given type- Parameters:
type
- Channel type- Returns:
- compatible BufferedImageType
-
-