News Feed
Jobs Feed
Sections




News Archive
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: Don't Ignore Your WordPress Footer

Matthew Weier O'Phinney: RESTful APIs with ZF2, Part 3

Stuart Herbert's Blog: PHP Components: Shipping Web Pages With Your Components

PHPBuilder.com: Smarty PHP Template Engine: Building PHP Apps in a Flash

Noupe.com: 20 Useful PHP + jQuery Components & Tuts for Everyday Project


Community Events









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


interview development introduction community testing release database podcast api code phpunit tool language unittest composer framework opinion object zendframework2 example

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