Enum Class PixelFormat
- All Implemented Interfaces:
Serializable, Comparable<PixelFormat>, Constable
Image pixel format.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic PixelFormatgetFromInt(int pixelFormat) Gets a PixelFormat enum value from its integer value.intgetValue()Gets the integer value of the pixel format.static PixelFormatReturns the enum constant of this class with the specified name.static PixelFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown format. -
MJPEG
Motion-JPEG (compressed image data). -
YUYV
YUY 4:2:2, 16 bpp. -
RGB565
RGB 5-6-5, 16 bpp. -
BGR
BGR 8-8-8, 24 bpp. -
GRAY
Grayscale, 8 bpp. -
Y16
Grayscale, 16 bpp. -
UYVY
YUV 4:2:2, 16 bpp. -
BGRA
BGRA 8-8-8-8. 32 bpp.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
getFromInt
Gets a PixelFormat enum value from its integer value.- Parameters:
pixelFormat- integer value- Returns:
- Enum value
-