Description
The Width
property of the FloatBitmap
class represents the width of the bitmap in pixels. It is an integer value that indicates how many pixels wide the bitmap is. This property is read-only and provides essential information about the dimensions of the bitmap.
Usage
To access the Width
property, you need to have an instance of the FloatBitmap
class. You can then retrieve the width of the bitmap using the Width
property.
Example
// Example of accessing the Width property of a FloatBitmap instance
// Create an instance of FloatBitmap
FloatBitmap floatBitmap = new FloatBitmap();
// Access the Width property
int bitmapWidth = floatBitmap.Width;
// Output the width
// Note: Avoid using Console.WriteLine in s&box
// Instead, use appropriate logging or debugging methods
// Debug.Log($"Bitmap Width: {bitmapWidth}");