[Lazarus] Converting C++ Uint8 to Red,Green,Blue

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Tue Apr 19 15:44:27 CEST 2011

It depends on the pixel format which the image uses. After you read
them you can get a TColor with:

function RGBToColor(R, G, B: Byte): TColor;

from unit Graphics

Note that TColor doesn't support Alpha

Felipe Monteiro de Carvalho

More information about the Lazarus mailing list