Android Guides | Samples

Android.Graphics.Bitmap.GetScaledWidth Method

Convenience method that returns the width of this bitmap divided by the density scale factor.

Syntax

[Android.Runtime.Register("getScaledWidth", "(I)I", "")]
public Int32 GetScaledWidth (Int32 targetDensity)

Parameters

targetDensity
The density of the target canvas of the bitmap.

Remarks

Convenience method that returns the width of this bitmap divided by the density scale factor.

[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