Android Guides | Samples

Android.Graphics.Bitmap.GetScaledWidth Method

Convenience for calling Bitmap.GetScaledWidth(Int32) with the target density of the given DisplayMetrics.

Syntax

[Android.Runtime.Register("getScaledWidth", "(Landroid/util/DisplayMetrics;)I", "")]
public Int32 GetScaledWidth (DisplayMetrics metrics)

Parameters

metrics

Remarks

Convenience for calling Bitmap.GetScaledWidth(Int32) with the target density of the given DisplayMetrics.

[Android Documentation]

Requirements

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