System.UInt32 RawInt { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The RawInt property of the Color32 struct provides an integer representation of the color in the format 0xAABBGGRR. This format is commonly used by native code to represent colors, where each pair of hexadecimal digits represents a color component: alpha (AA), blue (BB), green (GG), and red (RR).

Usage

Use the RawInt property when you need to interact with systems or APIs that require color data in the 0xAABBGGRR format. This property is particularly useful for low-level graphics programming or when interfacing with native libraries that expect this specific color format.

Example

// Example of accessing the RawInt property
Color32 color = new Color32();
uint rawIntValue = color.RawInt;

// Use rawIntValue in native code or other systems that require this format