Android.Graphics.Canvas.DrawBitmap Method
Draw the specified bitmap, with its top/left corner at (x,y), using the specified paint, transformed by the current matrix.

Syntax

[Android.Runtime.Register("drawBitmap", "(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V", "GetDrawBitmap_Landroid_graphics_Bitmap_FFLandroid_graphics_Paint_Handler")]
public virtual void DrawBitmap (Bitmap bitmap, float left, float top, Paint paint)

Parameters

bitmap
The bitmap to be drawn
left
The position of the left side of the bitmap being drawn
top
The position of the top side of the bitmap being drawn
paint
The paint used to draw the bitmap (may be null)

Remarks

Draw the specified bitmap, with its top/left corner at (x,y), using the specified paint, transformed by the current matrix.

Note: if the paint contains a maskfilter that generates a mask which extends beyond the bitmap's original width/height (e.g. BlurMaskFilter), then the bitmap will be drawn as if it were in a Shader with CLAMP mode. Thus the color outside of the original width/height will be the edge color replicated.

If the bitmap and canvas have different densities, this function will take care of automatically scaling the bitmap to draw at the same density as the canvas.

[Android Documentation]

Requirements

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