Android.Graphics.Drawables.BitmapDrawable.SetTargetDensity Method
Set the density scale at which this drawable will be rendered.

Syntax

[Android.Runtime.Register("setTargetDensity", "(Landroid/graphics/Canvas;)V", "GetSetTargetDensity_Landroid_graphics_Canvas_Handler")]
public virtual void SetTargetDensity (Android.Graphics.Canvas canvas)

See Also

Android.Graphics.Bitmap.Density
Android.Graphics.Bitmap.Density

Parameters

canvas
The Canvas from which the density scale must be obtained.

Remarks

Set the density scale at which this drawable will be rendered. This method assumes the drawable will be rendered at the same density as the specified canvas.

[Android Documentation]

Requirements

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