Bitmap.GetScaledHeight Method

Definition

Overloads

GetScaledHeight(Canvas)

Convenience for calling #getScaledHeight(int) with the target density of the given Canvas.

GetScaledHeight(DisplayMetrics)

Convenience for calling #getScaledHeight(int) with the target density of the given DisplayMetrics.

GetScaledHeight(Int32)

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

GetScaledHeight(Canvas)

Convenience for calling #getScaledHeight(int) with the target density of the given Canvas.

[Android.Runtime.Register("getScaledHeight", "(Landroid/graphics/Canvas;)I", "")]
public int GetScaledHeight (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("getScaledHeight", "(Landroid/graphics/Canvas;)I", "")>]
member this.GetScaledHeight : Android.Graphics.Canvas -> int

Parameters

canvas
Canvas

Returns

The scaled height of this bitmap, according to the density scale factor.

Attributes

Remarks

Convenience for calling #getScaledHeight(int) with the target density of the given Canvas.

Java documentation for android.graphics.Bitmap.getScaledHeight(android.graphics.Canvas).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetScaledHeight(DisplayMetrics)

Convenience for calling #getScaledHeight(int) with the target density of the given DisplayMetrics.

[Android.Runtime.Register("getScaledHeight", "(Landroid/util/DisplayMetrics;)I", "")]
public int GetScaledHeight (Android.Util.DisplayMetrics metrics);
[<Android.Runtime.Register("getScaledHeight", "(Landroid/util/DisplayMetrics;)I", "")>]
member this.GetScaledHeight : Android.Util.DisplayMetrics -> int

Parameters

metrics
DisplayMetrics

Returns

The scaled height of this bitmap, according to the density scale factor.

Attributes

Remarks

Convenience for calling #getScaledHeight(int) with the target density of the given DisplayMetrics.

Java documentation for android.graphics.Bitmap.getScaledHeight(android.util.DisplayMetrics).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetScaledHeight(Int32)

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

[Android.Runtime.Register("getScaledHeight", "(I)I", "")]
public int GetScaledHeight (int targetDensity);
[<Android.Runtime.Register("getScaledHeight", "(I)I", "")>]
member this.GetScaledHeight : int -> int

Parameters

targetDensity
Int32

The density of the target canvas of the bitmap.

Returns

The scaled height of this bitmap, according to the density scale factor.

Attributes

Remarks

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

Returns the bitmap's height multiplied by the ratio of the target density to the bitmap's source density

Java documentation for android.graphics.Bitmap.getScaledHeight(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to