Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Determining the DPI of the Canvas? |
Post Reply |
Author | |
stevemaughan
Beginner Joined: 08 Oct 14 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 08 Oct 14 at 1:11PM |
Hi -
I'd like to draw a map as a PDF file. This will require a lot of vector graphics. To do this I need to know the resolution of the canvas (e.g. pixels per inch). Or I need to set the resolution of the canvas. Is this possible? If so, how can I do it?
Thanks, Steve
|
|
erico
Senior Member Joined: 24 Sep 14 Location: Minnesota USA Status: Offline Points: 51 |
Post Options
Thanks(0)
|
You pick the dpi yourself when you RenderPageToDC (or DARenderPageToDC). It is one of the parameters:
int DPLDARenderPageToDC(int InstanceID, int FileHandle, int PageRef, double DPI, HDC DC); Maybe I misunderstood. You want to know what value to supply. Look at the response to Previewing a PDF before Saving? This shows the appropriate calculations to create a device context with the correct dpi Edited by erico - 08 Oct 14 at 3:15PM |
|
stevemaughan
Beginner Joined: 08 Oct 14 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Wonderful!
Many thanks, Steve
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
btw.
this is described here: http://www.debenu.com/kb/map-pdf-coordinates-delphi-graphics-canvas-coordinates/ Edited by mLipok - 09 Oct 14 at 2:46PM |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
stevemaughan
Beginner Joined: 08 Oct 14 Location: United States Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Thanks - looks like a great article!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store