Property | Type | Description | |
---|---|---|---|
$_capabilities | string[] | Capabilites of this driver. | |
$_imagick | Imagick | The underlaying Imagick object. |
Method | Description | |
---|---|---|
__construct ( $params, $context = [] ) | Constructor. | |
__get ( $property ) | ||
applyEffects ( ) | Applies any effects in the effect queue. | |
arc ( integer $x, integer $y, integer $r, integer $start, integer $end, string $color = 'black', string $fill = 'none' ) | Draws an arc. | |
circle ( integer $x, integer $y, integer $r, string $color, string $fill = 'none' ) | Draws a circle. | |
crop ( integer $x1, integer $y1, integer $x2, integer $y2 ) | Crops the current image. | |
current ( ) : Horde_Image_Imagick | Returns the current image from the internal iterator. | |
dashedLine ( integer $x0, integer $y0, integer $x1, integer $y1, string $color = 'black', string $width = 1, integer $dash_length = 2, integer $dash_space = 2 ) | Draws a dashed line. | |
flip ( ) | Flips the current image. | |
frameImage ( &$image, string $color, integer $width, integer $height ) | Utility function to wrap Imagick::borderImage. | |
getDimensions ( ) : array | Returns the height and width of the current image data. | |
getImageAtIndex ( integer $index ) : Horde_Image_Imagick | Returns a specific image from the pages of images. | |
getImagePageCount ( ) : integer | Returns the number of image pages available in the image object. | |
grayscale ( ) | Converts the current image to grayscale. | |
key ( ) : integer | Returns the index of the internal iterator. | |
line ( integer $x0, integer $y0, integer $x1, integer $y1, string $color = 'black', string $width = 1 ) | Draws a line. | |
loadFile ( string $filename ) | Loads the image data from a file. | |
loadString ( string $image_data ) | Loads the image data from a string. | |
mirror ( ) | Mirrors the current image. | |
next ( ) : Horde_Image_Imagick | Advances the iterator. | |
polygon ( $verts, string $color, string $fill = 'none' ) | Draws a polygon based on a set of vertices. | |
polyline ( $verts, string $color, string $width = 1 ) | Draws a polyline (a non-closed, non-filled polygon) based on a set of vertices. | |
raw ( boolean $convert = false ) : string | Returns the raw data for this image. | |
rectangle ( integer $x, integer $y, integer $width, integer $height, string $color, string $fill = 'none' ) | Draws a rectangle. | |
reset ( ) | Resets the image data to defaults. | |
resize ( integer $width, integer $height, boolean $ratio = true, boolean $keepProfile = false ) | Resizes the current image. | |
rewind ( ) | Resets the Imagick iterator to the first image in the set. | |
rotate ( integer $angle, string $background = 'white' ) | Rotates the current image. | |
roundedRectangle ( integer $x, integer $y, integer $width, integer $height, integer $round, string $color, string $fill ) | Draws a rounded rectangle. | |
sepia ( integer $threshold = 85 ) | Applies a sepia filter. | |
setType ( string $type ) : string | Sets the output image type. | |
text ( $string, integer $x, integer $y, string $font = '', string $color = 'black', integer $direction, string $fontsize = 'small' ) | Draws a text string on the image in a specified location, with the specified style information. | |
valid ( ) : boolean | Deterimines if the current iterator item is valid. |
public arc ( integer $x, integer $y, integer $r, integer $start, integer $end, string $color = 'black', string $fill = 'none' ) | ||
$x | integer | The x coordinate of the centre. |
$y | integer | The y coordinate of the centre. |
$r | integer | The radius of the arc. |
$start | integer | The start angle of the arc. |
$end | integer | The end angle of the arc. |
$color | string | The line color of the arc. |
$fill | string | The fill color of the arc (defaults to none). |
public circle ( integer $x, integer $y, integer $r, string $color, string $fill = 'none' ) | ||
$x | integer | The x coordinate of the centre. |
$y | integer | The y coordinate of the centre. |
$r | integer | The radius of the circle. |
$color | string | The line color of the circle. |
$fill | string | The color to fill the circle. |
public current ( ) : Horde_Image_Imagick | ||
return | Horde_Image_Imagick |
public dashedLine ( integer $x0, integer $y0, integer $x1, integer $y1, string $color = 'black', string $width = 1, integer $dash_length = 2, integer $dash_space = 2 ) | ||
$x0 | integer | The x co-ordinate of the start. |
$y0 | integer | The y co-ordinate of the start. |
$x1 | integer | The x co-ordinate of the end. |
$y1 | integer | The y co-ordinate of the end. |
$color | string | The line color. |
$width | string | The width of the line. |
$dash_length | integer | The length of a dash on the dashed line. |
$dash_space | integer | The length of a space in the dashed line. |
public getDimensions ( ) : array | ||
return | array | An hash with 'width' containing the width, 'height' containing the height of the image. |
public getImageAtIndex ( integer $index ) : Horde_Image_Imagick | ||
$index | integer | The index to return. |
return | Horde_Image_Imagick | The requested image |
public getImagePageCount ( ) : integer | ||
return | integer | The number of images. |
public line ( integer $x0, integer $y0, integer $x1, integer $y1, string $color = 'black', string $width = 1 ) | ||
$x0 | integer | The x coordinate of the start. |
$y0 | integer | The y coordinate of the start. |
$x1 | integer | The x coordinate of the end. |
$y1 | integer | The y coordinate of the end. |
$color | string | The line color. |
$width | string | The width of the line. |
public loadString ( string $image_data ) | ||
$image_data | string | The data to use for the image. |
public next ( ) : Horde_Image_Imagick | ||
return | Horde_Image_Imagick |
public rectangle ( integer $x, integer $y, integer $width, integer $height, string $color, string $fill = 'none' ) | ||
$x | integer | The left x-coordinate of the rectangle. |
$y | integer | The top y-coordinate of the rectangle. |
$width | integer | The width of the rectangle. |
$height | integer | The height of the rectangle. |
$color | string | The line color of the rectangle. |
$fill | string | The color to fill the rectangle. |
public roundedRectangle ( integer $x, integer $y, integer $width, integer $height, integer $round, string $color, string $fill ) | ||
$x | integer | The left x-coordinate of the rectangle. |
$y | integer | The top y-coordinate of the rectangle. |
$width | integer | The width of the rectangle. |
$height | integer | The height of the rectangle. |
$round | integer | The width of the corner rounding. |
$color | string | The line color of the rectangle. |
$fill | string | The color to fill the rounded rectangle with. |
public text ( $string, integer $x, integer $y, string $font = '', string $color = 'black', integer $direction, string $fontsize = 'small' ) | ||
$x | integer | The left x coordinate of the start of the text string. |
$y | integer | The top y coordinate of the start of the text string. |
$font | string | The font identifier you want to use for the text. |
$color | string | The color that you want the text displayed in. |
$direction | integer | An integer that specifies the orientation of the text. |
$fontsize | string | Size of the font (small, medium, large, giant) |
protected string[] $_capabilities | ||
return | string[] |