Horde_Image_gdThis 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.
$Horde: framework/Image/Image/gd.php,v 1.48.10.25 2010-09-05 16:51:39 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/gd.php (line 21)
Horde_Image | --Horde_Image_gd
void
arc
(integer $x, integer $y, integer $r, integer $start, integer $end, [string $color = 'black'], [string $fill = null])
void
dashedLine
(integer $x0, integer $y0, integer $x1, integer $y1, [string $color = 'black'], [string $width = 1], [integer $dash_length = 2], [integer $dash_space = 2])
void
line
(integer $x1, integer $y1, $x2, $y2, [string $color = 'black'], [string $width = 1], integer $x0, integer $y0)
void
rectangle
(integer $x, integer $y, integer $width, integer $height, [string $color = 'black'], [string $fill = 'none'])
void
roundedRectangle
(integer $x, integer $y, integer $width, integer $height, integer $round, [string $color = 'black'], [string $fill = 'none'])
void
text
( $string, integer $x, integer $y, [string $font = 'monospace'], [string $color = 'black'], [integer $direction = 0], [ $fontsize = 'small'], string $text)
array
$_capabilities
= array('resize',Capabilites of this driver.
resource
$_im
(line 44)
GD Image resource for the current image data.
Inherited from Horde_Image
Horde_Image::$_background
Horde_Image::$_data
Horde_Image::$_height
Horde_Image::$_loadedEffects
Horde_Image::$_observers
Horde_Image::$_rgb
Horde_Image::$_tmpdir
Horde_Image::$_type
Horde_Image::$_width
Constructor Horde_Image_gd (line 47)
arc (line 883)
Draw an arc.
circle (line 567)
Draw a circle.
crop (line 304)
Crop the current image.
dashedLine (line 818)
Draw a dashed line.
display (line 73)
Display the current image.
flip (line 383)
Flip the current image.
getContentType (line 65)
getDimensions (line 114)
Get the height and width of the current image.
getFont (line 152)
grayscale (line 425)
Convert the current image to grayscale.
line (line 768)
Draw a line.
loadFile (line 204)
Load the image data from a file.
loadString (line 181)
Load the image data from a string.
mirror (line 404)
Mirror the current image.
polygon (line 602)
Draw a polygon based on a set of vertices.
polyline (line 856)
Draw a polyline (a non-closed, non-filled polygon) based on a set of vertices.
raw (line 88)
Returns the raw data for this image.
rectangle (line 641)
Draw a rectangle.
reset (line 99)
Reset the image data.
resize (line 262)
Resize the current image.
rotate (line 323)
Rotate the current image.
roundedRectangle (line 675)
Draw a rounded rectangle.
sepia (line 458)
Sepia filter.
Basically turns the image to grayscale and then adds some defined tint on it (R += 30, G += 43, B += -23) so it will appear to be a very old picture.
text (line 537)
Draws a text string on the image in a specified location, with the specified style information.
yellowize (line 499)
Yellowize filter.
Adds a layer of yellow that can be transparent or solid. If $intensityA is 255 the image will be 0% transparent (solid).
_allocateColor (line 140)
Creates a color that can be accessed in this object. When a color is set, the integer resource of it is returned.
_allocateColorAlpha (line 1043)
_applyMask (line 915)
Applies the specified mask to the image.
_call (line 1065)
Wraps a call to a function of the gd extension.
If the call produces an error, a PEAR_Error is returned, the function result otherwise.
_create (line 1034)
Creates an image of the given size.
If possible the function returns a true color image.
_grayscalePixel (line 1019)
_grayscaleValue (line 1012)
Inherited From Horde_Image
Horde_Image::Horde_Image()
Horde_Image::addEffect()
Horde_Image::addObserver()
Horde_Image::applyEffects()
Horde_Image::brightness()
Horde_Image::brush()
Horde_Image::display()
Horde_Image::factory()
Horde_Image::getCapabilities()
Horde_Image::getDimensions()
Horde_Image::getHexColor()
Horde_Image::getLink()
Horde_Image::getLoadedEffects()
Horde_Image::getRGB()
Horde_Image::hasCapability()
Horde_Image::headers()
Horde_Image::loadFile()
Horde_Image::loadString()
Horde_Image::modifyColor()
Horde_Image::moreIntenseColor()
Horde_Image::notifyObservers()
Horde_Image::raw()
Horde_Image::reset()
Horde_Image::singleton()
Horde_Image::toFile()
Documentation generated on Sun, 30 Jan 2011 05:17:46 +0000 by phpDocumentor 1.4.3