PHP
  Home arrow PHP arrow Drawing More Complex Shapes with the G...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
OLM
 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: 5 stars5 stars5 stars5 stars5 stars / 2
    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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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

    Virtual Tradeshows by Ziff Davis Enterprise - A Unique Opportunity to Connect with IT Experts, Access Information, and Gain Insight on today's Technology

    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


       · In this part of the series, you'll learn the key concepts on how to use the set of...
     

       

    PHP ARTICLES

    - Setting Up a Web-based Image Hosting Service
    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway