Just started with the SDK and need a little guidance.
We haveto display the PDF on the screen using either GDI+ Graphics and from the example we can use either
DrawPageToDIBSection
or
DrawPageToDC
I'm currently using DrawPageToDIBSection to create a Bitmap and then using that to display on Graphics using DrawImage - this allows us to control Zoom/Pan in sync with the rest of our display.
Before I do too much more, is there a simpler/better way to achieve the same result.
Many thanks
Phil
Display using Graphics and Bitmap
Moderators: Tracker Support, TrackerSupp-Daniel, Sean - Tracker, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 9
- Joined: Tue Oct 02, 2012 9:09 am
Re: Display using Graphics and Bitmap
Yeah, your method with DrawPageToDIBSection and DrawImage seems like it’s doing the job, especially if you need that control over zooming and panning. But before going too deep, you might want to try using DrawPageToDC directly—it could save you some steps by avoiding the bitmap creation. Also, just a side note, if you’re sending emails to discuss this stuff and want to make sure they’re being read, there’s a way to track if your emails are opened. Anyway, if what you’re doing works, no need to change, but if you can streamline it, why not? Keep us posted if you figure out a better way!
-
- User
- Posts: 9
- Joined: Tue Oct 02, 2012 9:09 am
- TrackerSupp-Daniel
- Site Admin
- Posts: 9415
- Joined: Wed Jan 03, 2018 6:52 pm
Display using Graphics and Bitmap
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com