Assign Data Member Function

Assigns the right-hand object to the left-hand object.

Prototype

int32 Assign( Color rhs )

Parameters

Parameter Type Parameter Name Documentation
<Color>rhsA pointer to the right-hand object.

Examples

Copy Text To Clipboard

auto Color a = new Color( 255, 0, 0, 255 );
auto Color b;
b.Assign( a ); // Now b has the same values as a.