Image_Canvas_WithMap Image_Canvas_WithMap(
array
$params)
|
|
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
Parameters:
void addSpline(
array
$params)
|
|
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
Overrides
Image_Canvas::addSpline() (Adds "splined" vertex to a polygon)
Parameters:
void image(
array
$params)
|
|
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
Overridden in child classes as:
- Image_Canvas_GD::image()
- Overlay image
Overrides
Image_Canvas::image() (Overlay image)
Parameters:
void pieslice(
array
$params)
|
|
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
Overridden in child classes as:
- Image_Canvas_GD::pieslice()
- Draw a pie slice
Overrides
Image_Canvas::pieslice() (Draw a pie slice)
Parameters:
void polygon(
array
$params)
|
|
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
Overridden in child classes as:
- Image_Canvas_GD::polygon()
- Parameter array:
Overrides
Image_Canvas::polygon() (Draws a polygon)
Parameters: