The Height
property of the Bitmap
class represents the vertical dimension of the bitmap in pixels. It is an integer value that indicates how many pixels tall the bitmap is.
The Height
property of the Bitmap
class represents the vertical dimension of the bitmap in pixels. It is an integer value that indicates how many pixels tall the bitmap is.
To access the height of a bitmap, use the Height
property on an instance of the Bitmap
class. This property is read-only and provides the current height of the bitmap.
// Example of accessing the Height property Bitmap myBitmap = new Bitmap(); int bitmapHeight = myBitmap.Height; // Output the height of the bitmap // Note: Replace with appropriate logging or UI display method // e.g., Debug.Log(bitmapHeight);