Image_Canvas_SWF (Constructor) [line 91]
Creates the SWF movie object
Parameters available:
'width' The width of the graph 'height' The height of the graph 'version' The flash version, supports up to version 6 'background' An array with the background color, e.g. array('red' => 255, 'green' => 0, 'blue' => 0) Either integers between 0 and 255 or hexadecimals between 0x00 and 0xFF
Parameters:
addElement [line 131]
void addElement(
string
$element)
|
|
Add an object to the movie
Parameters:
addText [line 682]
void addText(
array
$params)
|
|
Writes text
Parameter array: 'x' : int X-point of text 'y' : int Y-point of text 'text' : string The text to add 'color' : mixed [optional] The color of the text
Overrides
Image_Canvas::addText() (Writes text)
Parameters:
drawEnd [line 273]
void drawEnd(
array
$params)
|
|
Draw a line end
Parameter array: 'x' : int X point 'y' : int Y point 'end' : string The end type of the end 'size' : int The size of the end 'color' : string The color of the end 'angle' : int [optional] The angle with which to draw the end 'url' : string [optional] Target URL
Overrides
Image_Canvas::drawEnd() (Draw a line end)
Parameters:
ellipse [line 559]
void ellipse(
array
$params)
|
|
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 'url' : string [optional] Target URL
Overrides
Image_Canvas::ellipse() (Draw an ellipse)
Parameters:
getData [line 810]
image [line 764]
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 'url' : string [optional] Target URL
Overrides
Image_Canvas::image() (Overlay image)
Parameters:
line [line 407]
void line(
array
$params)
|
|
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 'url' : string [optional] Target URL
Overrides
Image_Canvas::line() (Draw a line)
Parameters:
pieslice [line 632]
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
Overrides
Image_Canvas::pieslice() (Draw a pie slice)
Parameters:
polygon [line 448]
void polygon(
[array
$params = array()])
|
|
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 'url' : string [optional] Target URL
Overrides
Image_Canvas::polygon() (Draws a polygon)
Parameters:
rectangle [line 500]
void rectangle(
array
$params)
|
|
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' : The fill style 'line' : The line style 'url' : string [optional] Target URL
Overrides
Image_Canvas::rectangle() (Draw a rectangle)
Parameters:
save [line 795]
void save(
[array
$param = false])
|
|
Save the SWF to a file
Overrides
Image_Canvas::save() (Save the result of the canvas to a file)
Parameters:
setBackground [line 117]
void setBackground(
mixed
$color)
|
|
Sets the background color
Values can be specified either as integers between 0 and 255 or as hexadecimals between 0x00 and 0xFF
Parameters:
setClipping [line 830]
void setClipping(
[array
$params = false])
|
|
Set clipping to occur
Parameter array:
'x0' : int X point of Upper-left corner 'y0' : int X point of Upper-left corner 'x1' : int X point of lower-right corner 'y1' : int Y point of lower-right corner
Overrides
Image_Canvas::setClipping() (Set clipping to occur)
Parameters:
setFillImage [line 219]
void setFillImage(
string
$filename)
|
|
Sets an image that should be used for filling
Overrides
Image_Canvas::setFillImage() (Sets an image that should be used for filling)
Parameters:
setFont [line 249]
void setFont(
array
$fontOptions)
|
|
Sets the font options.
The $font array may have the following entries: 'type' : 'ttf' (TrueType) or omitted for default
If 'type' is 'ttf' then the following can be specified
'size' : size in pixels
'angle' : the angle with which to write the text 'file' : the .ttf file (either the basename, filename or full path)
Overrides
Image_Canvas::setFont() (Sets the font options.)
Parameters:
setGradientFill [line 231]
show [line 776]
void show(
[array
$param = false])
|
|
Display the SWF
Overrides
Image_Canvas::show() (Output the result of the canvas to the browser)
Parameters:
textHeight [line 659]
int textHeight(
string
$text)
|
|
Get the height of a text,
Overrides
Image_Canvas::textHeight() (Get the height of a text,)
Parameters:
textWidth [line 643]
int textWidth(
string
$text)
|
|
Get the width of a text,
Overrides
Image_Canvas::textWidth() (Get the width of a text,)
Parameters:
toHtml [line 854]
string toHtml(
array
$params)
|
|
Get an SWF specific HTML tag
This method implicitly saves the canvas to the filename in the filesystem path specified and parses it as URL specified by URL path
Parameter array: 'filename' : string 'filepath' : string Path to the file on the file system. Remember the final slash 'urlpath' : string Path to the file available through an URL. Remember the final slash 'width' : int The width in pixels 'height' : int The height in pixels 'quality' : Flash quality 'scale' : Scale 'menu' : Whether to display the Flash menu on mouse right-click
Overrides
Image_Canvas::toHtml() (Get a canvas specific HTML tag.)
Parameters: