[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

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

Image_Canvas Class for handling output as a HTML imagemap

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: ImageMap.php,v 1.7 2006/02/13 20:53:20 nosey Exp $
Poids: 354 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Image_Canvas_ImageMap:: (9 méthodes):
  _addMapTag()
  line()
  polygon()
  rectangle()
  ellipse()
  pieslice()
  show()
  save()
  toHtml()


Classe: Image_Canvas_ImageMap  - X-Ref

Class for handling output as a HTML imagemap

_addMapTag($shape, $coords, $params)   X-Ref
Add a map tag

param: string $shape The shape, either rect, circle or polygon
param: string $coords The list of coordinates for the shape
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
'mapsize': int [optional] The size of the image map (surrounding the line)
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
'map_vertices': bool [optional] Specifies whether the image map should map the vertices instead of the polygon as a whole
'url': string [optional] URL to link the polygon as a whole to (also used for default in case 'map_vertices' is used)
'alt': string [optional] Alternative text to show in the image map (also used for default in case 'map_vertices' is used)
'target': string [optional] The link target on the image map (also used for default in case 'map_vertices' is used)
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

show($params = false)   X-Ref
Output the result of the canvas to the browser

param: array $params Parameter array, the contents and meaning depends on the actual Canvas

save($params = false)   X-Ref
Save the result of the canvas to a file

Parameter array:
'filename': string The file to output to
param: array $params Parameter array, the contents and meaning depends on the actual Canvas

toHtml($params)   X-Ref
Get a canvas specific HTML tag.

Parameter array:
'name': string The name of the image map



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