Page 1 of 1

Color Problem

Posted: Fri Apr 07, 2023 11:28 am
by 18686897
Hi

In Delphi 11.2 + Firemonkey , does not support AlphaColors?

Image attached..

Thks.

Re: Color Problem

Posted: Sat Apr 08, 2023 9:30 pm
by 18686897
Width this change in the original code of the unit Tee.Format , seems to work correctly.

Code: Select all

class function TColorHelper.Swap(const AColor:TColor):TColor;
begin
{  Original Code
  TAlphaColorRec(result).R:=TAlphaColorRec(AColor).B;
  TAlphaColorRec(result).G:=TAlphaColorRec(AColor).G;
  TAlphaColorRec(result).B:=TAlphaColorRec(AColor).R;
  TAlphaColorRec(result).A:=TAlphaColorRec(AColor).A;
 }

  // Changed code
  TAlphaColorRec(result).R:=TAlphaColorRec(AColor).R;
  TAlphaColorRec(result).G:=TAlphaColorRec(AColor).G;
  TAlphaColorRec(result).B:=TAlphaColorRec(AColor).B;
  TAlphaColorRec(result).A:=TAlphaColorRec(AColor).A;

end;

Re: Color Problem

Posted: Tue Apr 18, 2023 9:34 am
by Marc
Thanks for the feedback. We'll take a look at the best way to meet TColor and TAlphaColor requirements.

Regards,
Marc Meumann

Re: Color Problem

Posted: Fri Sep 22, 2023 2:32 am
by 18696547
This exact bug was in the aggpas delphi port.