$_background
$_background : string
Background color.
It's a fallback to still be able to use API even if no image manipulation service is available.
__construct(array $params, array $context = array())
Constructor.
array | $params | The image object parameters. Values include:
|
array | $context | The object context - configuration, injected objects:
|
brush(integer $x, integer $y, string $color = 'black', string $shape = 'square')
Draws a shaped point at the specified (x,y) point.
Useful for scatter diagrams, debug points, etc. Draws squares, circles, diamonds, and triangles.
integer | $x | The x coordinate of the point to brush. |
integer | $y | The y coordinate of the point to brush. |
string | $color | The color to brush the point with. |
string | $shape | What brush to use? Defaults to a square. |
toFile( $data = null) : string
Saves image data to file.
If $data is false-ish, saves current image data after performing pending operations on the data. If $data contains raw image data, saves that data to file without regard for the current image data.
$data |
Path to temporary file.
raw(boolean $convert = false, array $options = array()) : string
Returns the raw data for this image.
boolean | $convert | If true, the image data will be returned in the target format, independently from any image operations. |
array | $options | Array of options:
|
The raw image data.
getImageAtIndex(integer $index) : \Horde_Image_Base
Returns a specific image from the pages of images.
integer | $index | The index to return. |
The requested image