ColorMode

enum ColorMode : Enum<ColorMode>

Represents the number and order of color channels in the image.

Entries

GRAYSCALE
Link copied to clipboard

Grayscale

BGR
Link copied to clipboard
BGR(3)

Blue, green, red.

RGB
Link copied to clipboard
RGB(3)

Red, green, blue.

Properties

channels
Link copied to clipboard
val channels: Int

number of image channels

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

Extensions

imageType
Link copied to clipboard
fun ColorMode.imageType(): Int

Returns an integer representing a type of BufferedImage corresponding to this color mode.