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

Syntax

[Android.Runtime.Register("setTargetDensity", "(Landroid/util/DisplayMetrics;)V", "GetSetTargetDensity_Landroid_util_DisplayMetrics_Handler")]
public virtual void SetTargetDensity (Android.Util.DisplayMetrics metrics)

See Also

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

Parameters

metrics
The DisplayMetrics indicating the density scale for this drawable.

Remarks

Set the density scale at which this drawable will be rendered.

[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