SizeInBytes Data Member Function

Returns the size of the <Color565> object, which is 2 bytes.

Prototype

int32 SizeInBytes()

Examples

Copy Text To Clipboard

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

Console.Out( a.SizeInBytes() );

Results

2 // Since 565 colors pack RGBA values into 16-bits packed, or 2 bytes.