[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 532 lignes (19 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_Image_swf:: (16 méthodes):
Horde_Image_swf()
getContentType()
display()
raw()
allocateColor()
getFont()
text()
circle()
polygon()
rectangle()
roundedRectangle()
line()
dashedLine()
polyline()
arc()
gradientRectangle()
Classe: Horde_Image_swf - X-Ref
This class implements the Horde_Image:: API for SWF, using the PHPHorde_Image_swf($params) X-Ref |
SWF root movie. |
getContentType() X-Ref |
Pas de description |
display() X-Ref |
Display the movie. |
raw() X-Ref |
Return the raw data for this image. return: string The raw image data. |
allocateColor($name) X-Ref |
Creates a color that can be accessed in this object. When a color is set, the rgba values are returned in an array. param: string $name The name of the color. return: array The red, green, blue, alpha values of the color. |
getFont($font) X-Ref |
Pas de description |
text($string, $x, $y, $font = 'monospace', $color = 'black', $direction = 0) X-Ref |
Draws a text string on the image in a specified location, with the specified style information. param: string $text The text to draw. param: integer $x The left x coordinate of the start of the text string. param: integer $y The top y coordinate of the start of the text string. param: string $font The font identifier you want to use for the text. param: string $color The color that you want the text displayed in. param: integer $direction An integer that specifies the orientation of the text. |
circle($x, $y, $r, $color, $fill = 'none') X-Ref |
Draw a circle. param: integer $x The x co-ordinate of the centre. param: integer $y The y co-ordinate of the centre. param: integer $r The radius of the circle. param: string $color The line color of the circle. param: string $fill The color to fill the circle. |
polygon($verts, $color, $fill = 'none') X-Ref |
Draw a polygon based on a set of vertices. param: array $vertices An array of x and y labeled arrays param: string $color The color you want to draw the polygon with. param: string $fill The color to fill the polygon. |
rectangle($x, $y, $width, $height, $color, $fill = 'none') X-Ref |
Draw a rectangle. param: integer $x The left x-coordinate of the rectangle. param: integer $y The top y-coordinate of the rectangle. param: integer $width The width of the rectangle. param: integer $height The height of the rectangle. param: string $color The line color of the rectangle. param: string $fill The color to fill the rectangle. |
roundedRectangle($x, $y, $width, $height, $round, $color = 'black', $fill = 'none') X-Ref |
Draw a rectangle. param: integer $x The left x-coordinate of the rectangle. param: integer $y The top y-coordinate of the rectangle. param: integer $width The width of the rectangle. param: integer $height The height of the rectangle. param: integer $round The width of the corner rounding. param: string $color The line color of the rectangle. param: string $fill The color to fill the rectangle. |
line($x1, $y1, $x2, $y2, $color = 'black', $width = 1) X-Ref |
Draw a line. param: integer $x0 The x co-ordinate of the start. param: integer $y0 The y co-ordinate of the start. param: integer $x1 The x co-ordinate of the end. param: integer $y1 The y co-ordinate of the end. param: string $color The line color. param: string $width The width of the line. |
dashedLine($x0, $y0, $x1, $y1, $color = 'black', $width = 1, $dash_length = 2, $dash_space = 2) X-Ref |
Draw a dashed line. param: integer $x0 The x co-ordinate of the start. param: integer $y0 The y co-ordinate of the start. param: integer $x1 The x co-ordinate of the end. param: integer $y1 The y co-ordinate of the end. param: string $color The line color. param: string $width The width of the line. param: integer $dash_length The length of a dash on the dashed line param: integer $dash_space The length of a space in the dashed line |
polyline($verts, $color, $width = 1) X-Ref |
Draw a polyline (a non-closed, non-filled polygon) based on a set of vertices. param: array $vertices An array of x and y labeled arrays param: string $color The color you want to draw the line with. param: string $width The width of the line. |
arc($x, $y, $r, $start, $end, $color = 'black', $fill = 'none') X-Ref |
Draw an arc. param: integer $x The x co-ordinate of the centre. param: integer $y The y co-ordinate of the centre. param: integer $r The radius of the arc. param: integer $start The start angle of the arc. param: integer $end The end angle of the arc. param: string $color The line color of the arc. param: string $fill The fill color of the arc. |
gradientRectangle($x, $y, $width, $height, $color = 'black', $fill1 = 'black', $fill2 = 'white') X-Ref |
Draw a rectangle filled with a gradient from $color1 to $color2. param: integer $x The left x-coordinate of the rectangle. param: integer $y The top y-coordinate of the rectangle. param: integer $width The width of the rectangle. param: integer $height The height of the rectangle. param: string $color The outline color of the rectangle. param: string $fill1 The name of the start color for the gradient. param: string $fill2 The name of the end color for the gradient. |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |