Description
The Depth
property of the FloatBitmap
class represents the number of channels or layers in the bitmap. This property is an integer value that indicates how many data layers are present in the bitmap, which can be useful for understanding the complexity or detail level of the image data.
Usage
To access the Depth
property, you need to have an instance of the FloatBitmap
class. You can then read the property to determine the number of channels in the bitmap. This property is read-only and provides information about the bitmap's structure.
Example
// Create an instance of FloatBitmap
FloatBitmap floatBitmap = new FloatBitmap();
// Access the Depth property
int depth = floatBitmap.Depth;
// Output the depth
// Note: Replace this with your preferred method of displaying the value
// For example, using a UI element or logging system
// Example: DisplayDepth(depth);
// Function to display depth (hypothetical)
void DisplayDepth(int depth)
{
// Implement your display logic here
}