Mattias Gaertner escreveu:
On Tue, 16 Feb 2010 17:15:37 -0300
Luiz Americo Pereira Camara <luiz...@oi.com.br> wrote:

or

colGray be redefined as colGray : TFPColor = (Red: $8080; Green: $8080; Blue: $8080; Alpha: alphaOpaque) ??

Yes, although this rarely makes a difference.

It does.
See below.

This info will help to fix http://bugs.freepascal.org/view.php?id=15793

IMO the bug report is misleading. Converting a TFPColor to RGB looses
bits.

The bug is not about converting to RGB. See the attached example in bugreport.

 SetCol := colGray;
 Img.Colors[0,0] := SetCol;
 GetCol := Img.Colors[0,0];

 SetCol <> GetCol

Luiz
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to