Language

BitmapFactory.Options.OutHeight Property

Definition

The image height reported by the decoder.

[Android.Runtime.Register("outHeight")]
public int OutHeight { get; set; }
[<Android.Runtime.Register("outHeight")>]
member this.OutHeight : int with get, set

Property Value

The image height reported by the decoder, in pixels.

Attributes

Remarks

On Android 7 through Android 17, this is the sampled image height before density scaling. When decoding pixels, Android 5.0 through Android 6 can include density scaling in this value.

outHeight will be set to -1 if there is an error trying to decode.

Java documentation for android.graphics.BitmapFactory.Options.outHeight.

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