The RawInt
property of the Color
struct provides an integer representation of the color in the format 0xAABBGGRR
. This format is commonly used by native code for efficient color manipulation and storage.
The RawInt
property of the Color
struct provides an integer representation of the color in the format 0xAABBGGRR
. This format is commonly used by native code for efficient color manipulation and storage.
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 low-level graphics programming or when interfacing with native libraries that expect color data in this specific format.
// 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