- colors
- Array of colors representing the pixels of the bitmap
- offset
- Offset into the array of colors for the first pixel
- stride
- The number of colors in the array between rows (must be >= width or <= -width).
- x
- The X coordinate for where to draw the bitmap
- y
- The Y coordinate for where to draw the bitmap
- width
- The width of the bitmap
- height
- The height of the bitmap
- hasAlpha
- True if the alpha channel of the colors contains valid values. If false, the alpha byte is ignored (assumed to be 0xFF for every pixel).
- paint
- May be null. The paint used to draw the bitmap
Treat the specified array of colors as a bitmap, and draw it. This gives the same result as first creating a bitmap from the array, and then drawing it, but this method avoids explicitly creating a bitmap object which can be more efficient if the colors are changing often.