SetData Data Member Function

Sets the color data from by values in a packed uint32.

Prototype

int32 SetData( uint32 p_uValue )

Parameters

Parameter Type Parameter Name Documentation
uint32p_uValueThe <uint32> value containing the packed bytes.

Examples

Copy Text To Clipboard

auto Color a = new Color( 255, 128, 64, 255 );
uint packed_color = a.GetData();

auto Color b;
b.SetData( packed_color );

Console.Out( LibColor.Out( a ) );
Console.Out( LibColor.Out( b ) );

Results

255, 128, 64, 255
255, 128, 64, 255