You might help me, regarding an issue that started hitting me one week and a half ago (which I have documented in this other thread https://forum.pdf-xchange.com/ ... 44&t=22283), by answering this precise question :
- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work?
(I assume no).
- then, what about PXC_AddImageFromHBITMAP()?
(I assume yes).
Am I right about these two?
Thanks a lot!
Does PXC_AddImageFromMemory() does any GDI calls internally?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 48
- Joined: Thu Mar 11, 2010 7:07 pm
-
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: Does PXC_AddImageFromMemory() does any GDI calls interna
In case of raster formats - no, we do not need GDI. But when you use EMF/WMF files we use GDI functions.omascia wrote:- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work?
(I assume no).
Yes, we must use them to obtain data from HBITMAP.omascia wrote:- then, what about PXC_AddImageFromHBITMAP()?
(I assume yes).
Victor
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 48
- Joined: Thu Mar 11, 2010 7:07 pm
Re: Does PXC_AddImageFromMemory() does any GDI calls interna
Pardon me asking, but are you sure about EMF/WMF, I do not see how this API could take EMF/WMF as input as it receives an array of pixels as input, which is raster in essence.Lzcat - Tracker Supp wrote:In case of raster formats - no, we do not need GDI. But when you use EMF/WMF files we use GDI functions.omascia wrote:- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work?
(I assume no).
Anyway, thanks for the confirmation that this API doesn't use GDI. This helps us understand better why we work-around the GDI problems we had these last days when we take care of passing you pixels straight through this API.
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London