Color Problem
Posted: Fri Apr 07, 2023 11:28 am
Hi
In Delphi 11.2 + Firemonkey , does not support AlphaColors?
Image attached..
Thks.
In Delphi 11.2 + Firemonkey , does not support AlphaColors?
Image attached..
Thks.
Steema Software - Customer Support Forums
https://974310.kinnakethk.tech/
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;