Add Data Member Function

Adds a <Color565> object to the end of the array.

Prototype

int32 Add( Color565 p_oColor )

Parameters

Parameter Type Parameter Name Documentation
<Color565>p_oColorA pointer to the <Color565> object to add to the array.

Examples

Copy Text To Clipboard

auto Color565 a_oValue = new Color565( 255, 128, 64, 255 );

auto Color565Array a_aoArray;

a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );
a_aoArray.Add( a_oValue );

for( int i = 0; i < a_aoArray.GetCount(); ++i )
{
   Console.Out( LibColor565.Out( a_aoArray.Get( i ) ) );
}

Results

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