System.UInt32 RgbInt { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RgbInt property provides an integer representation of a color in the format 0xRRGGBB. This property is useful for scenarios where a compact integer representation of a color is needed, such as when interfacing with systems that require color data in this format.

Usage

To access the RgbInt property, simply call it on an instance of the Color struct. This property is read-only and provides a quick way to retrieve the RGB components of a color as a single integer value.

Example

// Example of accessing the RgbInt property
Color color = new Color(1.0f, 0.5f, 0.0f, 1.0f); // Orange color
uint rgbInt = color.RgbInt;
// rgbInt will be 0xFF8000, representing the RGB components of the color