Copy Data Member Function

Copies the value of the source array into this array.

Prototype

int32 Copy( ColorArray p_oSource )

Parameters

Parameter Type Parameter Name Documentation
<ColorArray>p_oSourcePointer to a <ColorArray> containing the values you wish to copy.

Examples

Copy Text To Clipboard

import library "type_color_array_util.ssl";

auto Color red = new Color( 255, 0, 0, 255 );
auto ColorArray a = new ColorArray( 4, red );

auto ColorArray b;
b.Copy( a );

LibColorArray.Out2D( b, 4, 4 );

Results

0, 0, 255, 255,
0, 0, 255, 255,
0, 0, 255, 255,
0, 0, 255, 255