Get Data Member Function

Returns a pointer to the <Color565> object at the specified index.

Prototype

Color565 Get( int32 p_nIndex )

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index of the object to retrieve.

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";
import library "type_color565_array_util.ssl";

auto Color565 red = new Color565( 255, 0, 0, 255 );

auto Color565Array data;
data.Count = 4;
data.Fill( red );

Color565 member = data.Get( 2 );
member.SetRGBA( 255, 128, 64, 255 );

LibColor565Array.Out( data );

Results

// Color is packed in BGRA order interally, so these results are correct.
COLOR565ARRAY OUTPUT generated by TYPE_COLOR565_ARRAY_UTIL.SSL
0,
248,
0,
248,
8,
252,
0,
248,
114,
101,
115,
101,
110,
116,
97,
116