Assign Data Member Function

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

Prototype

int32 Assign( Color565 rhs )

Parameters

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

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";

auto Color565 a = new Color565( 255, 0, 0, 255 );
auto Color565 b;
b.Assign( a ); // Now b has the same values as a.
string a_sResults = LibColor565.Out( b );
Console.Out( a_sResults );

Results

248, 0, 0, 255