解决方法
检查
Graphics.ColorToRGB功能.
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.