System.UInt32 RawInt { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RawInt property provides an integer representation of a color in the format 0xAABBGGRR, which is commonly used by native code. This format encodes the alpha, blue, green, and red components of the color into a single 32-bit unsigned integer.

Usage

Use the RawInt property when you need to interact with systems or APIs that require color data in a compact integer format. This property is particularly useful for performance-sensitive applications where minimizing data size is crucial.

Example

// Example of accessing the RawInt property
Color color = new Color(1.0f, 0.5f, 0.25f, 0.75f);
uint rawIntValue = color.RawInt;
// rawIntValue now holds the integer representation of the color in 0xAABBGGRR format