Android Guides | Samples

Android.Graphics.Bitmap.Width Property

Returns the bitmap's width

Syntax

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

See Also

Remarks

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.

Requirements

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