[Lazarus] TColor and alpha channel

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 30 23:33:57 CEST 2012


On Wed, 30 May 2012 22:38:00 +0200
Krzysztof <dibo20 at wp.pl> wrote:

> Hi,
> 
> Does TColor has alpha channel?

No.

> I am confused because wiki says that it
> doesn't but delphi TColor has (I always thought that he doesn't have
> too, maybe it is new Delphi 2010?). If not, maybe exists any
> equivalent type or possibility write own TColorEx = longint which
> include standard TColor and byte with alpha?

TColor supports special colors:
  clNone    = TColor($1FFFFFFF);
  clDefault = TColor($20000000);
  SYS_COLOR_BASE = TColorRef($80000000);
  clScrollBar = TColor(SYS_COLOR_BASE or COLOR_SCROLLBAR);

TFPColor supports RGB colors with alpha.

Mattias




More information about the Lazarus mailing list