KingOrmon Posted June 22, 2022 Share Posted June 22, 2022 Hi, I have the following code for convert TAlphaColor to TColor, var rgb: TColor; begin rgb := TAlphaColorRec.ColorToRGB(AlphaColor); end; Now, I need convert TColor to TAlphaColor, I think that it will be in any function but I don´t see. Thank you Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2022 Share Posted June 22, 2022 1 hour ago, KingOrmon said: Now, I need convert TColor to TAlphaColor, I think that it will be in any function but I don´t see. Hello, For example: TAlphaColor($FF000000) or TAlphaColor(clGreen) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 22, 2022 Share Posted June 22, 2022 2 minutes ago, Sherzod said: TAlphaColor($FF000000) or TAlphaColor(clGreen) AColor := TAlphaColor($FF000000) or TAlphaColor(clGreen); Quote Link to comment Share on other sites More sharing options...
KingOrmon Posted June 22, 2022 Author Share Posted June 22, 2022 wow, thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.