Android.Graphics.Canvas.DrawBitmap Method
Treat the specified array of colors as a bitmap, and draw it.

Syntax

[Android.Runtime.Register("drawBitmap", "([IIIFFIIZLandroid/graphics/Paint;)V", "GetDrawBitmap_arrayIIIFFIIZLandroid_graphics_Paint_Handler")]
[System.Obsolete("deprecated")]
public virtual void DrawBitmap (int[] colors, int offset, int stride, float x, float y, int width, int height, bool hasAlpha, Paint paint)

Parameters

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

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3