Android Guides | Samples

Android.Graphics.Bitmap.Width Property

Returns the bitmap's width


[get: Android.Runtime.Register("getWidth", "()I", "GetGetWidthHandler")]
[set: Android.Runtime.Register("setWidth", "(I)V", "GetSetWidth_IHandler")]
public Int32 Width { get; set; }

See Also


Get method documentation[Android Documentation]
Returns the bitmap's width

Set method documentation[Android Documentation]

Convenience method for calling Bitmap.Reconfigure(Int32,Int32,Int32) with the current height and config.

WARNING: this method should not be used on bitmaps currently used by the view system, see Bitmap.Reconfigure(Int32,Int32,Int32) for more details.


Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 1