Color Info
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.
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
Returns bit shift converting row bytes to row pixels. Returns zero for ColorType.UNKNOWN.