使用 GDI+在德尔福XE中

发布于 2024-12-22 12:57:31 字数 214 浏览 2 评论 0原文

以下内容在 Delphi XE2 中有效,但在 Delphi XE 中引发访问冲突:

uses
  GDIPAPI, GDIPOBJ;
...
TGPImage.Create (TStreamAdapter.Create (MemStream));   // throws AV

How can I use GDI+ in Delphi XE?

The following works in Delphi XE2 but throws an access violation in Delphi XE:

uses
  GDIPAPI, GDIPOBJ;
...
TGPImage.Create (TStreamAdapter.Create (MemStream));   // throws AV

How can I use GDI+ in Delphi XE?

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

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

发布评论

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

评论(1

转身以后 2024-12-29 12:57:31

使用 Progdigy 中的 GDI+ 单元并重命名它们以避免与 TeeCharts 包中使用的单元发生冲突解决了这个问题。 XE 没有附带这些单元的源代码(XE2 有),所以我不确定为什么它失败了。

Using the GDI+ units from Progdigy and renaming them to avoid conflicts with the ones used in the TeeCharts package solves the issue. XE does not come with sources for these units (XE2 does), so I'm not sure why it failed.

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