[Lazarus] TColor and alpha channel
dibo20 at wp.pl
Thu May 31 13:59:27 CEST 2012
I read about TFPColor, but this is record type and I can't publish
this kind of property type in object inspector, so I thought that
maybe exists some numerical type which include alpha. Ok so I must
create some wrapper which inherit from TPersistent.
2012/5/30 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> On Wed, 30 May 2012 22:38:00 +0200
> Krzysztof <dibo20 at wp.pl> wrote:
>> Does TColor has alpha channel?
>> 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.
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus