将 RGB 颜色转换为 OLE_Color

发布于 2024-08-25 11:13:07 字数 124 浏览 6 评论 0原文

我有一项艰巨的任务,即维护一个 ActiveX 控件,该控件需要 OLE_Colors 作为控件的背景/for 颜色。

是否有工具或 .NET 代码示例可以将 RGB 颜色(或十六进制颜色)转换为 OLE_Color?

I have the unenviable task of maintaining an ActiveX control that expects OLE_Colors as the back/for colour of the control.

Is there a tool or a .NET code sample that will convert from an RGB colour (or a hex colour) to an OLE_Color?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丑疤怪 2024-09-01 11:13:07

System.Drawing.ColorTranslator.ToOle()

System.Drawing.ColorTranslator.ToOle()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文