PHP
  Home arrow PHP arrow Drawing More Complex Shapes with the GD Library in PHP
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Drawing More Complex Shapes with the GD Library in PHP
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 4
    2007-08-22


    Table of Contents:
  • Drawing More Complex Shapes with the GD Library in PHP
  • Displaying filled images and arcs
  • Drawing filled polygons with the GD library
  • Retrieving information about a given image stream

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Drawing More Complex Shapes with the GD Library in PHP
    ( Page 1 of 4 )

    The GD library that comes bundled with PHP 4 and PHP 5 provides web developers with a robust set of intuitive functions for generating and handling dynamic graphics with minor hassles. If you're interested in mastering the numerous features integrated with this PHP extension, this series of instructive tutorials will make the whole learning experience a truly painless process.

    Introduction

    Welcome to the fourth part of the series that began with "A Close Look at the GD Library in PHP." This series introduces the most useful functions that come packaged with this powerful graphic PHP library. It also covers the utilization of the library from a practical point of view, since it includes numerous, easy-to-follow code samples.

    So far, so good. Having introduced (at least basically) the topics covered by this series, and provided that you have already read its preceding articles, I'd like to spend a few moments summarizing the concepts that you hopefully learned so far concerning the use of the functions included with the GD extension.

    In the previous article of the series, I showed you how to take advantage of the remarkable functionality of this PHP extension to display different types of basic arcs on the browser. I also covered outputting some basic characters. The GD functions that perform all of these drawing tasks are extremely simple to use, since most of them take a few intuitive input parameters to display the shapes.

    It is this simplicity that makes the library very appealing for many PHP developers. Performing common tasks such as creating several image streams on the fly, or appending different text strings to an existing background picture, are all processes that can be achieved by utilizing a few straightforward functions.

    All right, now that I have refreshed your memory of how to use the GD library to display distinct kinds of arcs on the browser, I believe that it's time to continue exploring many other handy functions that come integrated with this extension. Speaking more specifically, in this fourth tutorial of the series, I'll show you how to draw some additional shapes, such as filled arcs, and ellipses, along with creating dynamically different types of polygons and retrieving basic information about a given image stream.

    With the preliminaries out of the way, let's learn together how to use the GD library to easily perform all of these tasks. It's going to be an educational experience, trust me!



     
     
    >>> More PHP Articles          >>> More By Alejandro Gervasio
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    Stay green...Green IT