Horde_ImageThis class defines the Horde_Image:: API, and also provides some utility functions, such as generating highlights of a color.
$Horde: framework/Image/Image.php,v 1.39.10.21 2010/03/28 16:39:11 mrubinsk Exp $
Copyright 2002-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Located in /Image/Image.php (line 20)
| Class | Description |
|---|---|
Horde_Image_im
|
This class implements the Horde_Image:: API for ImageMagick. |
Horde_Image_png
|
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. |
Horde_Image_svg
|
This class implements the Horde_Image:: API for SVG. |
Horde_Image_swf
|
This class implements the Horde_Image:: API for SWF, using the PHP Ming extension. |
Horde_Image_gd
|
This class implements the Horde_Image:: API for the PHP GD extension. It mainly provides some utility functions, such as the ability to make pixels, for now. |
string
$_background
= 'white' (line 34)
Background color.
array
$_capabilities
= array() (line 48)
Capabilites of this driver.
string
$_data
= '' (line 55)
The current image data.
integer
$_height
= 0 (line 69)
The current height of the image data.
array
$_loadedEffects
= array() (line 83)
Array containing available Effects
array
$_observers
= array() (line 41)
Observers.
string
$_rgb
= 'ff0000' (line 27)
Current color.
string
$_tmpdir
(line 76)
A directory for temporary files.
string
$_type
= 'png' (line 90)
What kind of images should ImageMagick generate? Defaults to 'png'.
integer
$_width
= 0 (line 62)
The current width of the image data.
static brightness (line 213)
Returns the brightness of a color.
static modifyColor (line 145)
Calculate a lighter (or darker) version of a color.
static moreIntenseColor (line 168)
Calculate a more intense version of a color.
Constructor Horde_Image (line 97)
Constructor.
addEffect (line 467)
Attempts to apply requested effect to this image. If the effect cannot be found a PEAR_Error is returned.
addObserver (line 284)
Add an observer to this image. The observer will be notified when the image's changes.
applyEffects (line 520)
Apply any effects in the effect queue.
brush (line 251)
Draw a shaped point at the specified (x,y) point. Useful for scatter diagrams, debug points, etc. Draws squares, circles, diamonds, and triangles.
display (line 387)
Display the current image.
factory (line 540)
Attempts to return a concrete Horde_Image instance based on $driver.
getCapabilities (line 112)
getDimensions (line 318)
Get the height and width of the current image data.
getHexColor (line 230)
getLink (line 122)
getLoadedEffects (line 484)
Load a list of available effects for this driver.
getRGB (line 222)
hasCapability (line 117)
headers (line 130)
Generate image headers.
loadFile (line 354)
Load the image data from a file.
loadString (line 338)
Load the image data from a string.
notifyObservers (line 292)
Let observers know that something happened worth acting on.
raw (line 402)
Returns the raw data for this image.
reset (line 304)
Reset the image data.
singleton (line 587)
Attempts to return a reference to a concrete Horde_Image instance based on $driver. It will only create a new instance if no Horde_Image instance with the same parameters currently exists.
This should be used if multiple types of image renderers (and, thus, multiple Horde_Image instances) are required.
This method must be invoked as: $var = &Horde_Image::singleton()
toFile (line 375)
Ouputs image data to file. If $data is false, outputs current image data after performing any pending operations on the data.
If $data contains raw image data, outputs that data to file without regard for $this->_data
Documentation generated on Sun, 30 Jan 2011 05:18:23 +0000 by phpDocumentor 1.4.3