简体   繁体   中英

Using 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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM