int Depth { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Depth property of the FloatBitmap class in the Sandbox.Utility namespace represents the depth of the bitmap. This property is an integer value that typically indicates the number of color channels or the bit depth per channel in the bitmap.

Usage

Use the Depth property to retrieve or set the depth of a FloatBitmap instance. This property is useful when you need to understand or modify the color depth of the bitmap for operations such as image processing or encoding.

Example

// Example of accessing the Depth property

// Create a new instance of FloatBitmap
FloatBitmap floatBitmap = new FloatBitmap();

// Set the depth of the bitmap
floatBitmap.Depth = 32;

// Retrieve the depth of the bitmap
int depth = floatBitmap.Depth;

// Output the depth
// Note: Avoid using Console.WriteLine in s&box
// Instead, use appropriate logging or debugging tools
// Debug.Log($"Bitmap Depth: {depth}");