ElementSize Data Member Function

Returns the size of the <Color565> object's component element size, which is 2 bytes. This is because the <Color565> object is packed, and doesn't store single-byte-per-color values internally.

Prototype

int32 ElementSize()

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";

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

Console.Out( a.ElementSize() ); // Will be 1 since each element is 1 uint8.

Results

1