News Feed
Sections




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

IBM developerWorks:
Create graphics the smart way with PHP
November 23, 2005 @ 05:57:41

In this new post from the IBM developerWorks site today, they show you how to "create graphics the smart way" with a little help from PHP and objects.

I lump graphics editing programs into two distinct categories: painting programs that let you tweak an image pixel by pixel and drawing programs that provide a set of objects like lines, ovals, and rectangles that you can manipulate until you render the drawing to a flat image like a JPEG.

PHP's built-in drawing primitives are like a paint program. They're great for rendering to an image, but they aren't so good if you want to think of your image as a set of objects. This article shows you how to build an object-oriented graphics library to sit on top of the PHP graphics library. You'll use the object-oriented extensions provided in PHP V5.

I like that they give the structure of the app as they go right along side the code. It helps keep the focus on the object-oriented aspect of the whole script. They step you through the creation of the class, how to make a square and circle with it, how to change the z-axis, and much more...

0 comments voice your opinion now!
graphics GD object oriented graphics GD object oriented


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Sophisticated Object Iterators in PHP

Secunia.com: PHP "gdPngReadData()" Truncated PNG Data Denial of Service

PHPBuilder.com: PHP Object Remoting in Flex

Paul Reinheimer's Blog: Object-Oriented PHP, Concepts, Techniques, and Code

DevShed: Using Directory Iterators and MySQL with Adapter Objects with PHP


Community Events





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


release library interview series introduction composer laravel tool security opinion list community framework podcast artisanfiles language conference version voicesoftheelephpant symfony

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