<?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 : Help with DrawImageMatrix</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 : I need help - I can help : Help with DrawImageMatrix]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Jul 2026 07:08:58 +0000</pubDate>
  <lastBuildDate>Mon, 23 May 2022 20:26:47 +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=2228</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[Help with DrawImageMatrix : Hi :)you should have a look at...]]></title>
   <link>http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post16106.html#16106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2228<br /><strong>Posted:</strong> 23 May 22 at 8:26PM<br /><br />Hi :)<br><br><br>you should have a look at:<br><br>SetOrigin:<br>https://www.debenu.com/docs/pdf_library_reference/SetOrigin.php<br>SetGlobalOrigin:<br>https://www.debenu.com/docs/pdf_library_reference/SetGlobalOrigin.php<br>SetMeasurementUnits:<br>https://www.debenu.com/docs/pdf_library_reference/SetMeasurementUnits.php<br>SetGlobalMeasurementUnits:<br>https://www.debenu.com/docs/pdf_library_reference/SetGlobalMeasurementUnits.php<br>&nbsp;<br>This are functions from the measurement and coordinate unit:<br>https://www.debenu.com/docs/pdf_library_reference/SetGlobalMeasurementUnits.php<br>Think there you'll find a solution for your issues...<br><br><br>]]>
   </description>
   <pubDate>Mon, 23 May 2022 20:26:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post16106.html#16106</guid>
  </item> 
  <item>
   <title><![CDATA[Help with DrawImageMatrix : In the Adobe PDF Reference, search...]]></title>
   <link>http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post16105.html#16105</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3325">fellafoo</a><br /><strong>Subject:</strong> 2228<br /><strong>Posted:</strong> 23 May 22 at 4:51PM<br /><br />In the Adobe PDF Reference, search for Common Transformations.<div>It's in section 8.3.3 of the PDF 1.7 document:<div><a href="https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf" target="_blank" rel="nofollow">https://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf</a><br></div><div><br></div><div>For example:</div><div><br></div><div>SetMeasurementUnits(0);</div><div>Note: I've gotten unexpected results using millimeters or inches.</div><div><br></div><div><div>For Translation (Move X / Move Y from Origin (Left, Bottom))...</div><div>DrawImageMatrix(ImageWidth * 1, 0, 0, ImageHeight * 1, MoveX, MoveY)</div></div></div><div><br></div><div>For Scaling (Enlarge X / Enlarge Y)...</div><div>DrawImageMatrix(ImageWidth * Enlargement, 0, 0, ImageHeight * Enlargement, 0, 0)</div><div><br></div><div>For Rotations (Counter-clockwise Angle around origin)...</div><div>DrawImageMatrix(ImageWidth * Cos(Angle * Pi / 180), ImageWidth * Sin(Angle * Pi / 180), ImageHeight * - Sin(Angle * Pi / 180), ImageHeight * Cos(Angle * Pi / 180), 0, 0)</div><div><br></div><div>For Skew (ImageWidth * 1, Tan(AngleX * Pi / 180), Tan(AngleY * Pi / 180), ImageHeight * 1, 0, 0)</div><div><br></div><div>FWIW,</div><div><br></div><div>MFM</div>]]>
   </description>
   <pubDate>Mon, 23 May 2022 16:51:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post16105.html#16105</guid>
  </item> 
  <item>
   <title><![CDATA[Help with DrawImageMatrix : The last two parameters are x,y...]]></title>
   <link>http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post9482.html#9482</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2228<br /><strong>Posted:</strong> 13 Apr 12 at 11:57AM<br /><br /><div><br></div><div>The last two parameters are x,y so experiment with those first... &nbsp;The image will be scaled to 1pt x 1pt so increase the 1 values to width and height values.</div><div><br></div><div>&nbsp; QP.DrawImageMatrix(100, 0, 0, 100, 300, 300);</div><div><br></div><div>Here is some code that generates an interesting pattern. &nbsp;This code is not mine so I cannot tell you how the parameters were created.</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.CompressImages(1);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int ImageID = QP.AddImageFromFile("aldi.bmp", 0);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SelectPage(1);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SelectImage(ImageID);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawImageMatrix(100, 0, 0, 100, 300, 300);</div><div><br></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawImageMatrix(152.44,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 60.9762,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1.53974,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 72.7334,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 55.8672,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 543);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawImageMatrix(151.872,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 63.3877,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -124.567,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 98.8179,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 179.203,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 443.602);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawImageMatrix(154.612,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 63.9774,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -125.495,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 75.8196,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 179.204,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 540.918);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DrawImageMatrix(153.172,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 63.6644,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 98.6157,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 178.163,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 444.123);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("out.pdf");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Process.Start(@"out.pdf");</div></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 13 Apr 2012 11:57:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post9482.html#9482</guid>
  </item> 
  <item>
   <title><![CDATA[Help with DrawImageMatrix : I&amp;#039;m trying to use DrawImageMatrix...]]></title>
   <link>http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post9475.html#9475</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1833">kaiken1987</a><br /><strong>Subject:</strong> 2228<br /><strong>Posted:</strong> 12 Apr 12 at 7:34PM<br /><br />I'm trying to use DrawImageMatrix but I can't get the image to display.<br>I assume that the parameters work so that<br><blockquote>x' = x*m11+y*m12+mdx<br>y' = x*m21+y*m22+mdy<br></blockquote>so if run with DrawImageMatrix(1,0,0,1,0,0) is should draw at the origin at its original size and orientation however nothing shows up in the output pdf. If I do a normal DrawImage it displays fine and DrawImageMatrix returns no error.<br><br>example code<br>&nbsp;<br><blockquote>QP-&gt;NewDocument();<br>QP-&gt;SetPageDimensions(3900,2400);<br>QP-&gt;SelectPage(1);<br>QP-&gt;SetOrigin(1);<br>QP-&gt;AddImageFromFile(L"test.tif",0);<br>QP-&gt;DrawImageMatrix(1,0,0,1,0,0);<br>QP-&gt;SaveToFile(L"Test.pdf");<br></blockquote> ]]>
   </description>
   <pubDate>Thu, 12 Apr 2012 19:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/help-with-drawimagematrix_topic2228_post9475.html#9475</guid>
  </item> 
 </channel>
</rss>