RGB_565

Pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word

Properties

Link copied to clipboard

Returns the number of bytes required to store a pixel, including unused padding. Returns zero for .UNKNOWN.

Link copied to clipboard

Returns true if ColorType always decodes alpha to 1.0, making the pixel fully opaque. If true, ColorType does not reserve bits to encode alpha.

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

Functions

Link copied to clipboard
fun computeOffset(x: Int, y: Int, rowBytes: Long): Long
Link copied to clipboard
fun getA(color: Byte): Float
fun getA(color: Int): Float
fun getA(color: Short): Float
Link copied to clipboard
fun getB(color: Byte): Float
fun getB(color: Int): Float
fun getB(color: Short): Float
Link copied to clipboard
fun getG(color: Byte): Float
fun getG(color: Int): Float
fun getG(color: Short): Float
Link copied to clipboard
fun getR(color: Byte): Float
fun getR(color: Int): Float
fun getR(color: Short): Float
Link copied to clipboard

Returns a valid ColorAlphaType for colorType. If there is more than one valid canonical ColorAlphaType, set to alphaType, if valid.