Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert TColor to COLORREF

Tags:

delphi

Has delphi a RTL function to Convert a TColor to COLORREF, if not how i can convert a TColor to COLORREF?

like image 736
DelphiNewbie Avatar asked May 04 '11 22:05

DelphiNewbie


Video Answer


1 Answers

Check the Graphics.ColorToRGB function.

Converts a TColor value into an RGB representation of the color.

Call ColorToRGB to obtain an RGB representation of a color for using with Windows API calls. ColorToRGB strips away the information that is stored in the highest order bits about which palette to use for colors that are not always available.

like image 78
RRUZ Avatar answered Sep 21 '22 16:09

RRUZ