<?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 : GetCanvasDC, Delphi, PatternBrush</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 : GetCanvasDC, Delphi, PatternBrush]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 27 Jun 2026 20:44:09 +0000</pubDate>
  <lastBuildDate>Tue, 12 Jul 2022 21:01:51 +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=1327</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[GetCanvasDC, Delphi, PatternBrush : This is what I&amp;#039;ve come up...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post16138.html#16138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3325">fellafoo</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 12 Jul 22 at 9:01PM<br /><br />This is what I've come up with so far. It seems to work.<div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>function PDF_CreateSetTilingPattern(var PDFLib: TDebenuPDFLibrary; ImgFile: String; Page: Integer): Boolean;</div><div>{ Create and set a bitmap tiling pattern for filled boundaries. }</div><div>var</div><div>&nbsp; ImageID, CaptureID: Integer;</div><div>&nbsp; PatternName: WideString;</div><div><br></div><div>begin</div><div>&nbsp; Result := False;</div><div><br></div><div>&nbsp; { Add temporary page and select it. }</div><div>&nbsp; PDFLib.NewPage;</div><div>&nbsp; PDFLib.SelectPage(PDFLib.PageCount);</div><div><br></div><div>&nbsp; { Load bitmap for tile pattern. }</div><div>&nbsp; ImageID := PDFLib.AddImageFromFile(ImgFile, 0);</div><div><br></div><div>&nbsp; { Set page dimensions in inches (bitmap pixels divided by dpi). }</div><div>&nbsp; PDFLib.SetPageDimensions(PDFLib.ImageWidth / PrintPDF.Dpi.X, PDFLib.ImageHeight / PrintPDF.Dpi.X);</div><div><br></div><div>&nbsp; { Select image and draw it to fill page. }</div><div>&nbsp; PDFLib.SelectImage(ImageID);</div><div>&nbsp; PDFLib.DrawImage(0, 0, PDFLib.PageWidth , PDFLib.PageHeight);</div><div>&nbsp; //PDFLib.DrawRotatedImage(0, 0, PDFLib.PageWidth , PDFLib.PageHeight, 270)</div><div><br></div><div>&nbsp; { Reset selected page }</div><div>&nbsp; PDFLib.SelectPage(Page);</div><div><br></div><div>&nbsp; { Capture last page and set pattern name. }</div><div>&nbsp; CaptureID := PDFLib.CapturePage(PDFLib.PageCount);</div><div>&nbsp; //CaptureID := PDFLib.CapturePageEx(PDFLib.PageCount, 0);</div><div>&nbsp; PatternName := IntToStr(CaptureID) + '_' + ExtractFileName(ImgFile);</div><div><br></div><div>&nbsp; PDFLib.NewTilingPatternFromCapturedPage(PatternName, CaptureID);</div><div><br></div><div>&nbsp; PDFLib.DeletePages(PDFLib.PageCount, 1);</div><div><br></div><div>&nbsp; Result := (PDFLib.SetFillTilingPattern(PatternName) = 1);</div><div>&nbsp; //PDFLib.SetTilingPatternMatrix()</div><div>end; { PDF_CreateSetTilingPattern }</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Tue, 12 Jul 2022 21:01:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post16138.html#16138</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC, Delphi, PatternBrush : Hello,I&amp;#039;ve been looking at...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post16137.html#16137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3325">fellafoo</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 12 Jul 22 at 4:06PM<br /><br />Hello,<div><br></div><div>I've been looking at this and I am stumped as well. I can use Windows.CreatePatternBrush or Windows.CreateHatchBrush and draw the fill onto a metafile canvas then use ImportEMFFromStream&nbsp; to get the pattern fill onto the page, but that's a long way around.<div><br></div><div>Has anyone come up with a more-direct method?</div><div><br></div><div>Thank You,</div><div><br></div><div>MFM</div></div>]]>
   </description>
   <pubDate>Tue, 12 Jul 2022 16:06:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post16137.html#16137</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC, Delphi, PatternBrush : Hi Detlev, can youcontact medirectlyat...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6078.html#6078</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 29 Jan 10 at 12:49AM<br /><br />Hi Detlev, can you&nbsp;contact me&nbsp;directly&nbsp;at &nbsp;jean-luc(at)delbeke(point)fr]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 00:49:04 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6078.html#6078</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC, Delphi, PatternBrush : Hi Delbeke, I use colored brushes...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6077.html#6077</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1235">Detlev</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 28 Jan 10 at 7:44PM<br /><br /><P>Hi Delbeke,</P><P>I use colored brushes too. I write a simple mapping application, therefore filling polygons with some kind of pattern is mandatory. Is it possible to use QP functions to "floodfill" rectangles with the selected image? Or do you know any library for filling closed areas with vector based pattern basically by tiling and clipping, like in Adobe Illustrator? (elementary pattern described by a kind of scripting language)</P>]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 19:44:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6077.html#6077</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC, Delphi, PatternBrush : Hi Detlev  At the momment, Quickpdf...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6076.html#6076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=129">DELBEKE</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 28 Jan 10 at 2:46PM<br /><br />Hi Detlev<DIV>&nbsp;</DIV><DIV>At the momment, Quickpdf can't handle pattern-brushes. Perhaps you can use some plain grayed or colored brushes ?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 14:46:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6076.html#6076</guid>
  </item> 
  <item>
   <title><![CDATA[GetCanvasDC, Delphi, PatternBrush : Hallo, I am re-writing a delphi...]]></title>
   <link>http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6075.html#6075</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1235">Detlev</a><br /><strong>Subject:</strong> 1327<br /><strong>Posted:</strong> 28 Jan 10 at 2:15PM<br /><br /><P>Hallo,</P><P>I am re-writing a delphi function which originally draws textured rectangles with a patternbrush to a printer canvas. I have changed the printer.canvas.handle to the QP.GetCanvasDC. Nearly everything works fine, with the exception of the textures. The PDF shows only the borderlines.</P><P>The same bitmaps (1 bit or 4 color grayscale, it doesn't matter) can be drawn with QP.Drawimage w/o problems. They will also be drawn on a PaintBox.Canvas with the same GDI commands.</P><P>Has anybody an idea, how to solve this problem?</P><P>Detlev</P>]]>
   </description>
   <pubDate>Thu, 28 Jan 2010 14:15:13 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/getcanvasdc-delphi-patternbrush_topic1327_post6075.html#6075</guid>
  </item> 
 </channel>
</rss>