BitmapFactory.Options.OutWidth Property


The resulting width of the bitmap.

public int OutWidth { get; set; }
member this.OutWidth : int with get, set

Property Value



The resulting width of the bitmap. If #inJustDecodeBounds is set to false, this will be width of the output bitmap after any scaling is applied. If true, it will be the width of the input image without any accounting for scaling.

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

Java documentation for

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