Enum TJPF
- java.lang.Object
-
- java.lang.Enum<TJPF>
-
- de.digitalcollections.turbojpeg.lib.enums.TJPF
-
- All Implemented Interfaces:
Serializable,Comparable<TJPF>,jnr.ffi.util.EnumMapper.IntegerEnum
public enum TJPF extends Enum<TJPF> implements jnr.ffi.util.EnumMapper.IntegerEnum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TJPFfromImageType(int imageType)static TJPFfromInt(int val)intintValue()static TJPFvalueOf(String name)Returns the enum constant of this type with the specified name.static TJPF[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TJPF_RGB
public static final TJPF TJPF_RGB
-
TJPF_BGR
public static final TJPF TJPF_BGR
-
TJPF_RGBX
public static final TJPF TJPF_RGBX
-
TJPF_BGRX
public static final TJPF TJPF_BGRX
-
TJPF_XBGR
public static final TJPF TJPF_XBGR
-
TJPF_XRGB
public static final TJPF TJPF_XRGB
-
TJPF_GRAY
public static final TJPF TJPF_GRAY
-
TJPF_RGBA
public static final TJPF TJPF_RGBA
-
TJPF_BGRA
public static final TJPF TJPF_BGRA
-
TJPF_AGBR
public static final TJPF TJPF_AGBR
-
TJPF_ARGB
public static final TJPF TJPF_ARGB
-
TJPF_CMYK
public static final TJPF TJPF_CMYK
-
-
Method Detail
-
values
public static TJPF[] 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 (TJPF c : TJPF.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TJPF 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
-
fromImageType
public static TJPF fromImageType(int imageType)
-
intValue
public int intValue()
- Specified by:
intValuein interfacejnr.ffi.util.EnumMapper.IntegerEnum
-
fromInt
public static TJPF fromInt(int val)
-
-