$_background
$_background : string
Background color.
This class implements the Horde_Image API for PNG images.
It mainly provides some utility functions, such as the ability to make pixels or solid images for now.
__construct(array $params, array $context = array())
PNG image 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.
getImageAtIndex(integer $index) : \Horde_Image_Png
Requests a specific image from the collection of images.
integer | $index | The index to return |
rectangle(integer $x, integer $y, integer $width, integer $height, string $color = 'black', string $fill = 'none')
Draws a rectangle.
integer | $x | The left x-coordinate of the rectangle. |
integer | $y | The top y-coordinate of the rectangle. |
integer | $width | The width of the rectangle. |
integer | $height | The height of the rectangle. |
string | $color | The line color of the rectangle. |
string | $fill | The color to fill the rectangle. |