Language

BitmapFactory.Options.OutWidth Property

Definition

The image width reported by the decoder.

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

Property Value

The sampled image width reported by the Android 16 decoder before density scaling, in pixels.

Attributes

Remarks

On Android 16, this is the sampled image width before density scaling.

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

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

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