<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : DC Resolution GetCanvasDC, GetCanvasDCEx</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : General Discussion : DC Resolution GetCanvasDC, GetCanvasDCEx]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 09:50:56 +0000</pubDate>
  <lastBuildDate>Mon, 10 Dec 2018 10:14:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=3638</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[DC Resolution GetCanvasDC, GetCanvasDCEx : Hi tfrost and thank you.I forgot...]]></title>
   <link>http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14507.html#14507</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1581">FOltean</a><br /><strong>Subject:</strong> 3638<br /><strong>Posted:</strong> 10 Dec 18 at 10:14AM<br /><br />Hi tfrost and thank you.&nbsp;<div>I forgot to mention that I create vectorial PDF files, so drawing on a bitmap is not an option.</div><div>When using the default screen resolution of 96 DPI the curves are not very smooth.</div><div>But at 300 DPI (when I create a DC based on a printer DC) the curves are very nice.</div><div>Best regards</div>]]>
   </description>
   <pubDate>Mon, 10 Dec 2018 10:14:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14507.html#14507</guid>
  </item> 
  <item>
   <title><![CDATA[DC Resolution GetCanvasDC, GetCanvasDCEx : What I do is create a bitmap at...]]></title>
   <link>http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14485.html#14485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3638<br /><strong>Posted:</strong> 29 Nov 18 at 4:18PM<br /><br />What I do is create a bitmap at whatever is the required resolution.&nbsp; Then you can load or paint into it whatever you want.&nbsp; If you want to keep your code really simple and clear, you can save the BMP to a stream, load the image from the stream using standard QPDF functions, and paint the image to the page using DrawImage or DrawScaledImage.&nbsp; Otherwise you can play around at the device context level and perhaps save a millisecond or two and some memory, but I find that generally takes more research than I have time for to get the details exactly right and avoid memory leaks.&nbsp; And most of the images I want to place on a page are already in file or stream format anyway.&nbsp; Sometimes the higher-level functions make sense.]]>
   </description>
   <pubDate>Thu, 29 Nov 2018 16:18:29 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14485.html#14485</guid>
  </item> 
  <item>
   <title><![CDATA[DC Resolution GetCanvasDC, GetCanvasDCEx : Hello Ingo and thank you for your...]]></title>
   <link>http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14484.html#14484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1581">FOltean</a><br /><strong>Subject:</strong> 3638<br /><strong>Posted:</strong> 29 Nov 18 at 3:02PM<br /><br />Hello Ingo and thank you for your answer.<div><br></div><div>&gt;&gt;I<span style=": rgb251, 251, 253;">&nbsp;don't know in detail what you're wanting</span></div><div><span style=": rgb251, 251, 253;">I want to create PDF files having a resolution higher than 96 DPI.</span></div><div><span style=": rgb251, 251, 253;">As I said&nbsp;</span><span style=": rgb251, 251, 253;">GetCanvasDC will return a DC having only 96 DPI, like the screen.</span></div><div><span style=": rgb251, 251, 253;">Using GetCanvasDCEx it is possible to have a higher resolution, but a printer has to be installed on the PC.</span></div><div><span style=": rgb251, 251, 253;">I would like to know if it is possible to specify the resolution when creating the CanvasDC.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Otherwise all works perfect for me, just that at 96 DPI the curves are not very nice.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Best regards,</span></div><div><span style=": rgb251, 251, 253;">Florin</span></div>]]>
   </description>
   <pubDate>Thu, 29 Nov 2018 15:02:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14484.html#14484</guid>
  </item> 
  <item>
   <title><![CDATA[DC Resolution GetCanvasDC, GetCanvasDCEx : Hi Florin,i don&amp;#039;t know in...]]></title>
   <link>http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14482.html#14482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3638<br /><strong>Posted:</strong> 28 Nov 18 at 8:11PM<br /><br />Hi Florin,<br><br>i don't know in detail what you're wanting but i've used the enhanced search function (above, on the right side here) with "printer DC canvas height" and found some search results.<br>Perhaps you'll find the neede information inside:<br><br>http://www.quickpdf.org/forum/forum_posts.asp?TID=2741&amp;KW=printer+DC+canvas+height&amp;PID=11246&amp;title=metafile-to-pdf#11246<br><br>http://www.quickpdf.org/forum/forum_posts.asp?TID=2603&amp;KW=printer+DC+canvas+height&amp;PID=10742&amp;title=problem-with-text#10742<br><br>http://www.quickpdf.org/forum/forum_posts.asp?TID=1921&amp;KW=printer+DC+canvas+height&amp;PID=8201&amp;title=yellow-images-from-canvas-dc#8201<br><br>Cheers and welcome here,<br>Ingo<br><br><span style="font-size:10px"><br /><br />Edited by Ingo - 28 Nov 18 at 8:12PM</span>]]>
   </description>
   <pubDate>Wed, 28 Nov 2018 20:11:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14482.html#14482</guid>
  </item> 
  <item>
   <title><![CDATA[DC Resolution GetCanvasDC, GetCanvasDCEx : Hello everybody,I use Delphi 2007...]]></title>
   <link>http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14479.html#14479</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1581">FOltean</a><br /><strong>Subject:</strong> 3638<br /><strong>Posted:</strong> 28 Nov 18 at 3:17PM<br /><br />Hello everybody,<div><br></div><div>I use Delphi 2007 and RAD10.2.3 and QuickPDF 14.11.</div><div>The idea is to create PDF files by painting on the Canvas at a given resolution.</div><div><br></div><div>I tried the following:</div><div>First I used GetCanvasDC and the resolution is the screen resolution 96 DPI.</div><div>Then I used GetCanvasDCEx, provided the handle of a printer device context and the resultion is the same as the printer resolution 300 DPI.</div><div><br></div><div><br></div><div><div><font face="Courier New, Courier, mono">if Printer &lt;&gt; nil then</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; DC&nbsp; := QP.GetCanvasDCEx(WidthPixels,</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HeightPixels,</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Printer.Canvas.Handle) //wil have the printer DPI (300)</font></div><div><font face="Courier New, Courier, mono">else</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; DC&nbsp; := QP.GetCanvasDC(WidthPixels,&nbsp;</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HeightPixels) ; //will have the screen DPI (96)</font></div></div><div><br></div><div>But is it possible to set the DC resolution without "cheating" by using a printer DC ?</div><div><br></div><div>Thanks,</div><div><br></div><div>Florin O.</div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 28 Nov 2018 15:17:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dc-resolution-getcanvasdc-getcanvasdcex_topic3638_post14479.html#14479</guid>
  </item> 
 </channel>
</rss>