Share via


Bitmap.Width Property

Definition

Returns the bitmap's width -or- Convenience method for calling #reconfigure(int, int, Config) with the current height and config.

public int Width { [Android.Runtime.Register("getWidth", "()I", "")] get; [Android.Runtime.Register("setWidth", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getWidth", "()I", "")>]
[<set: Android.Runtime.Register("setWidth", "(I)V", "")>]
member this.Width : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the bitmap's width

Java documentation for android.graphics.Bitmap.getWidth().

Property setter documentation:

Convenience method for calling #reconfigure(int, int, Config) with the current height and config.

WARNING: this method should not be used on bitmaps currently used by the view system, see #reconfigure(int, int, Config) for more details.

Java documentation for android.graphics.Bitmap.setWidth(int).

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

See also

  • <xref:Android.Graphics.Bitmap.Reconfigure(System.Int32%2c+System.Int32%2c+System.Int32)>
  • Height
  • <xref:Android.Graphics.Bitmap.SetConfig(.Config)>