News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mikko Koppanen's Blog:
Fill patterns
April 29, 2008 @ 15:24:50

Mikko Koppanen has a quick post today showing how to use PHP and Imagick to create an image of text filled with another image layer behind it:

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).

His example 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 PNG file.

0 comments voice your opinion now!
fill pattern imagick tutorial example png background image


blog comments powered by Disqus

Similar Posts

NetTuts.com: How to Send Text Messages with PHP

Philip Norton's Blog: Simple PHP Code To Get last.fm Last Played Tracks

Zend Developer Zone: Reading and Writing MP3 and Photo Metadata with PECL

NetTuts.com: Dates and Time - The OOP Way

Wez Furlong's Blog: Background/batch/workflow processing with PDO::PGSQL


Community Events





Don't see your event here?
Let us know!


zendserver interview bugfix series release podcast deployment library community introduction tips voicesoftheelephpant laravel developer api framework language list symfony conference

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework