ColorInfo

class ColorInfo(val colorType: ColorType, val alphaType: ColorAlphaType, val colorSpace: ColorSpace?)

Describes pixel and encoding. ImageInfo can be created from ColorInfo by providing dimensions.

It encodes how pixel bits describe alpha, transparency; color components red, blue, and green; and ColorSpace, the range and linearity of colors.

Constructors

Link copied to clipboard
constructor(colorType: ColorType, alphaType: ColorAlphaType, colorSpace: ColorSpace?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Returns number of bytes per pixel required by ColorType. Returns zero if getColorType() is ColorType.UNKNOWN.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns bit shift converting row bytes to row pixels. Returns zero for ColorType.UNKNOWN.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard
fun withColorSpace(_colorSpace: ColorSpace?): ColorInfo
Link copied to clipboard