Combine Data Member Function

Given ArrayA ( this array ) and ArrayB ( not this array ), combines ArrayB with ArrayA at the specified index in ArrayA.

Prototype

int32 Combine( Color565Array p_oArrayB, int32 p_nInsertIndex )

Parameters

Parameter Type Parameter Name Documentation
<Color565Array>p_oArrayBThe array to combine with the destination array.
int32p_nInsertIndexThe index at which to insert the source array into the destination array.

Examples

Copy Text To Clipboard

import library "type_color_array_util.ssl";

auto Color565 red = new Color565( 255, 255, 255, 255 );
auto Color565Array a = new Color565Array( 4, red );

auto Color565 blue = new Color565( 128, 128, 128, 128 );
auto Color565Array b = new Color565Array( 4, blue );

a.Combine( b, 2 );

LibColor565Array.Out( a );

Results

255,
255,
255,
255,
255,
16,
132,
16,
132,
16,
132,
16,
132,
255,
255,
255,
255,
105,
111,
110,
77,
111,
100,
117,
108,
101,
73,
110,
102,
111,
0,
112,
0