<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 08 Jul 2008 22:40:44 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mikko Koppanen's Blog: Fill patterns]]></title>
      <guid>http://www.phpdeveloper.org/news/10069</guid>
      <link>http://www.phpdeveloper.org/news/10069</link>
      <description><![CDATA[<p>
<i>Mikko Koppanen</i> has <a href="http://valokuva.org/?p=102">a quick post</a> today showing how to use PHP and Imagick to create an image of text filled with another image layer behind it:
</p>
<blockquote>
The fill pattern is used to annotate text but the named pattern could also be used to fill any shapes that allow fill to be specified (include circles, ellipses, rectangles, polygons etc etc).
</blockquote>
<p>
<a href="http://valokuva.org/?p=102">His example</a> is pretty simple (with a "Hello World!" output) that pulls in the background image, creates the composite layer over it, adds the text to it and sets the fill to the background image's layer. The whole this is wrapped up and output as <a href="http://valokuva.org/wp-content/uploads/2008/04/patternphp1.png">a PNG file</a>.
</p>]]></description>
      <pubDate>Tue, 29 Apr 2008 15:24:50 -0500</pubDate>
    </item>
  </channel>
</rss>
