Does PXC_AddImageFromMemory() does any GDI calls internally?

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

omascia
User
Posts: 48
Joined: Thu Mar 11, 2010 7:07 pm

Does PXC_AddImageFromMemory() does any GDI calls internally?

Post by omascia »

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!
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Does PXC_AddImageFromMemory() does any GDI calls interna

Post by Lzcat - Tracker Supp »

omascia wrote:- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work?
(I assume no).
In case of raster formats - no, we do not need GDI. But when you use EMF/WMF files we use GDI functions.
omascia wrote:- then, what about PXC_AddImageFromHBITMAP()?
(I assume yes).
Yes, we must use them to obtain data from HBITMAP.
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.
omascia
User
Posts: 48
Joined: Thu Mar 11, 2010 7:07 pm

Re: Does PXC_AddImageFromMemory() does any GDI calls interna

Post by omascia »

Lzcat - Tracker Supp wrote:
omascia wrote:- when I call PXC_AddImageFromMemory(), does this one makes *any* GDI call to do its work?
(I assume no).
In case of raster formats - no, we do not need GDI. But when you use EMF/WMF files we use GDI functions.
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. :)
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.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17948
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Does PXC_AddImageFromMemory() does any GDI calls interna

Post by Tracker Supp-Stefan »

:)