共用方式為


Bitmap.Height Property

Definition

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

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

Property Value

Attributes

Remarks

Property getter documentation:

Returns the bitmap's height

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

Property setter documentation:

Convenience method for calling #reconfigure(int, int, Config) with the current width 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.setHeight(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)>
  • Width
  • <xref:Android.Graphics.Bitmap.SetConfig(.Config)>