Android.Graphics.Canvas.SetBitmap Method
Specify a bitmap for the canvas to draw into.

Syntax

[Android.Runtime.Register("setBitmap", "(Landroid/graphics/Bitmap;)V", "GetSetBitmap_Landroid_graphics_Bitmap_Handler")]
public virtual void SetBitmap (Bitmap bitmap)

See Also

Canvas.Density
Canvas.Density

Parameters

bitmap
Specifies a mutable bitmap for the canvas to draw into.

Remarks

Specify a bitmap for the canvas to draw into. All canvas state such as layers, filters, and the save/restore stack are reset with the exception of the current matrix and clip stack. Additionally, as a side-effect the canvas' target density is updated to match that of the bitmap.

[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