Returns a pointer to the <Color565> object at the specified index.
Color565 Get( int32 p_nIndex )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nIndex | The index of the object to retrieve. |
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 );
// 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