gpt4 book ai didi

delphi - 将 TColor 转换为 COLORREF

转载 作者:行者123 更新时间:2023-12-03 14:46:13 26 4
gpt4 key购买 nike

delphi 有 RTL 函数将 TColor 转换为 COLORREF ,如果不是,我如何将 TColor 转换为 COLORREF?

最佳答案

检查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.

关于delphi - 将 TColor 转换为 COLORREF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5890683/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com