bool IsSdr { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsSdr property of the Color struct indicates whether all the color components (red, green, blue, and alpha) are within the standard dynamic range (SDR), which is between 0 and 1. This property is useful for determining if a color is suitable for SDR displays or processing.

Usage

Use the IsSdr property to check if a color is within the standard dynamic range. This can be particularly useful when working with graphics or rendering systems that require colors to be within a specific range.

Example

Color color = new Color(0.5f, 0.5f, 0.5f, 1.0f);
bool isSdr = color.IsSdr;
// isSdr will be true because all components are between 0 and 1.