| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 509 lignes (16 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Horde_Image_im:: (23 méthodes):
Horde_Image_im()
getContentType()
raw()
reset()
resize()
crop()
rotate()
flip()
mirror()
grayscale()
sepia()
text()
circle()
polygon()
rectangle()
roundedRectangle()
line()
dashedLine()
polyline()
arc()
setStrokeColor()
setStrokeWidth()
setFillColor()
Classe: Horde_Image_im - X-Ref
This class implements the Horde_Image:: API for ImageMagick.| Horde_Image_im($params) X-Ref |
| Constructor. |
| getContentType() X-Ref |
| Return the content type for this image. return: string The content type for this image. |
| raw($convert = false) X-Ref |
| Returns the raw data for this image. param: boolean $convert If true, the image data will be returned in the return: string The raw image data. |
| reset() X-Ref |
| Reset the image data. |
| resize($width, $height, $ratio = true) X-Ref |
| Resize the current image. param: integer $width The new width. param: integer $height The new height. param: boolean $ratio Maintain original aspect ratio. |
| crop($x1, $y1, $x2, $y2) X-Ref |
| Crop the current image. param: integer $x1 The top left corner of the cropped image. param: integer $y1 The top right corner of the cropped image. param: integer $x2 The bottom left corner of the cropped image. param: integer $y2 The bottom right corner of the cropped image. |
| rotate($angle, $background = 'white') X-Ref |
| Rotate the current image. param: integer $angle The angle to rotate the image by, param: integer $background The background color to fill any triangles. |
| flip() X-Ref |
| Flip the current image. |
| mirror() X-Ref |
| Mirror the current image. |
| grayscale() X-Ref |
| Convert the current image to grayscale. |
| sepia() X-Ref |
| Sepia filter. |
| text($string, $x, $y, $font = '_sans', $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 coordinate of the centre. param: integer $y The y coordinate 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, $fill) X-Ref |
| Draw a rounded 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 rounded rectangle with. |
| line($x0, $y0, $x1, $y1, $color = 'black', $width = 1) X-Ref |
| Draw a line. param: integer $x0 The x coordinate of the start. param: integer $y0 The y coordinate of the start. param: integer $x1 The x coordinate of the end. param: integer $y1 The y coordinate 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 coordinate of the centre. param: integer $y The y coordinate 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 (defaults to none). |
| setStrokeColor($color) X-Ref |
| Change the current stroke color. Will only affect the command string if $stroke is different from the previous stroke color (stored in $this->_strokeColor). param: string $color The new stroke color. |
| setStrokeWidth($width) X-Ref |
| Change the current stroke width. Will only affect the command string if $width is different from the previous stroke width (stored in $this->_strokeWidth). param: string $width The new stroke width. |
| setFillColor($color) X-Ref |
| Change the current fill color. Will only affect the command string if $color is different from the previous fill color (stored in $this->_fillColor). param: string $color The new fill color. |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |