PHP Classes
elePHPant
Icontem

PHP Draw: Render an image using drawing command language

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2007-11-01 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,326 All time: 2,812 This week: 963Up
Version License PHP version Categories
phpdraw 1.2GNU Lesser Genera...5.1PHP 5, Graphics
Description Author

This package can be used to render an image using a drawing command language.

It takes a string with commands that define the graphic primitives to be drawn in an image.

Several commands are currently supported: right, left, up, down, ellipse, filledellipse, filledarc, rectangle, polygon, color, x, y, pixel, fontsize, text and file.

The main class interprets the drawing commands by calling separate classes that draw the requested graphic primitives in an image.

The image with the rendered graphics may be saved to file in the PNG format.

The same image file can be used in subsequent requests to allow the user to perform interactive graphic drawings.

Innovation Award
PHP Programming Innovation award nominee
November 2007
Number 6
AJAX allows updating Web pages overlaying graphics without page reloading.

This class can be used to implement a graphics drawing Web application that renders overlayed graphic shapes using AJAX to update the page drawn by the user.

Manuel Lemos
Picture of Johan Barbier
Name: Johan Barbier <contact>
Classes: 17 packages by
Country: France France
Innovation award
Innovation award
Nominee: 6x

  Files folder image Files  
File Role Description
Files folder imageajax (1 file)
Files folder imageclass (2 files)
Files folder imageinc (1 file)
Files folder imagejs (2 files)
Plain text file doc_en.txt Doc. English doc
Plain text file doc_fr.txt Doc. French doc
HTML file index.html Data index file

  Files folder image Files  /  ajax  
File Role Description
  Accessible without login Plain text file ajax.draw.php Example Ajax script

  Files folder image Files  /  class  
File Role Description
  Plain text file class.exceptions.php Class Exceptions classes
  Plain text file class.interpreter.php Class PHPDRAW engine classe

  Files folder image Files  /  inc  
File Role Description
  Plain text file inc.main.php Aux. Definitions and inclusions

  Files folder image Files  /  js  
File Role Description
  Plain text file phpdraw.js Data Javascript for phpdraw GUI
  Plain text file prototype.js Data Prototype

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,326
This week:0
All time:2,812
This week:963Up