[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Image/Canvas/ -> WithMap.php (sommaire)

Image_Canvas Canvas based creation of images to facilitate different output formats

Author: Jesper Veggerby <pear.nosey@veggerby.dk>
Copyright: Copyright (C) 2003, 2004 Jesper Veggerby Hansen
License: http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
Version: CVS: $Id: WithMap.php,v 1.3 2005/08/24 20:37:35 nosey Exp $
Poids: 278 lignes (8 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Image_Canvas_WithMap:: (11 méthodes):
  Image_Canvas_WithMap()
  line()
  addVertex()
  addSpline()
  polygon()
  rectangle()
  ellipse()
  pieslice()
  addText()
  image()
  getImageMap()


Classe: Image_Canvas_WithMap  - X-Ref

Class for handling different output formats including a HTML image map

Image_Canvas_WithMap($params)   X-Ref
Create the canvas.

Parameters available:

'width' The width of the graph on the canvas

'height' The height of the graph on the canvas

'left' The left offset of the graph on the canvas

'top' The top offset of the graph on the canvas

'usemap' Initialize an image map

param: array $params Parameter array

line($params)   X-Ref
Draw a line

Parameter array:
'x0': int X start point
'y0': int Y start point
'x1': int X end point
'y1': int Y end point
'color': mixed [optional] The line color
param: array $params Parameter array

addVertex($params)   X-Ref
Adds vertex to a polygon

Parameter array:
'x': int X point
'y': int Y point
param: array $params Parameter array

addSpline($params)   X-Ref
Adds "splined" vertex to a polygon

Parameter array:
'x': int X point
'y': int Y point
'p1x': X Control point 1
'p1y': Y Control point 1
'p2x': X Control point 2
'p2y': Y Control point 2
param: array $params Parameter array

polygon($params)   X-Ref
Draws a polygon

Parameter array:
'connect': bool [optional] Specifies whether the start point should be
connected to the endpoint (closed polygon) or not (connected line)
'fill': mixed [optional] The fill color
'line': mixed [optional] The line color
param: array $params Parameter array

rectangle($params)   X-Ref
Draw a rectangle

Parameter array:
'x0': int X start point
'y0': int Y start point
'x1': int X end point
'y1': int Y end point
'fill': mixed [optional] The fill color
'line': mixed [optional] The line color
param: array $params Parameter array

ellipse($params)   X-Ref
Draw an ellipse

Parameter array:
'x': int X center point
'y': int Y center point
'rx': int X radius
'ry': int Y radius
'fill': mixed [optional] The fill color
'line': mixed [optional] The line color
param: array $params Parameter array

pieslice($params)   X-Ref
Draw a pie slice

Parameter array:
'x': int X center point
'y': int Y center point
'rx': int X radius
'ry': int Y radius
'v1': int The starting angle (in degrees)
'v2': int The end angle (in degrees)
'srx': int [optional] Starting X-radius of the pie slice (i.e. for a doughnut)
'sry': int [optional] Starting Y-radius of the pie slice (i.e. for a doughnut)
'fill': mixed [optional] The fill color
'line': mixed [optional] The line color
param: array $params Parameter array

addText($params)   X-Ref
Writes text

Parameter array:
'x': int X-point of text
'y': int Y-point of text
'text': string The text to add
'alignment': array [optional] Alignment
'color': mixed [optional] The color of the text

image($params)   X-Ref
Overlay image

Parameter array:
'x': int X-point of overlayed image
'y': int Y-point of overlayed image
'filename': string The filename of the image to overlay
'width': int [optional] The width of the overlayed image (resizing if possible)
'height': int [optional] The height of the overlayed image (resizing if possible)
'alignment': array [optional] Alignment

getImageMap()   X-Ref
Get the imagemap

return: Image_Graph_ImageMap The image map (or false if none)



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7