ElementSize Data Member Function

Returns the size of the <Color> object's component element size, which is 1 byte.

Prototype

int32 ElementSize()

Examples

Copy Text To Clipboard

import library "app_service_console_util.ssl";

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

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

Results

1