| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 519 lignes (15 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
Horde_Image:: (24 méthodes):
Horde_Image()
getCapabilities()
hasCapability()
getLink()
headers()
modifyColor()
moreIntenseColor()
brightness()
getRGB()
getHexColor()
brush()
addObserver()
notifyObservers()
reset()
getDimensions()
loadString()
loadFile()
toFile()
display()
raw()
_circlePoint()
_arcPoints()
factory()
singleton()
Classe: Horde_Image - X-Ref
This class defines the Horde_Image:: API, and also provides some| Horde_Image($params) X-Ref |
| Constructor. param: string $rgb The base color for generated pixels/images. |
| getCapabilities() X-Ref |
| Pas de description |
| hasCapability($capability) X-Ref |
| Pas de description |
| getLink($url, $title = '') X-Ref |
| Pas de description |
| headers() X-Ref |
| Generate image headers. |
| modifyColor($color, $factor = 0x11) X-Ref |
| Calculate a lighter (or darker) version of a color. param: string $color An HTML color, e.g.: #ffffcc. param: string $factor TODO return: string A modified HTML color. |
| moreIntenseColor($color, $factor = 0x11) X-Ref |
| Calculate a more intense version of a color. param: string $color An HTML color, e.g.: #ffffcc. param: string $factor TODO return: string A more intense HTML color. |
| brightness($color) X-Ref |
| Returns the brightness of a color. param: string $color An HTML color, e.g.: #ffffcc. return: integer The brightness on a scale of 0 to 255. |
| getRGB($colorname) X-Ref |
| Pas de description |
| getHexColor($colorname) X-Ref |
| Pas de description |
| brush($x, $y, $color = 'black', $shape = 'square') X-Ref |
| Draw a shaped point at the specified (x,y) point. Useful for scatter diagrams, debug points, etc. Draws squares, circles, diamonds, and triangles. param: integer $x The x coordinate of the point to brush. param: integer $y The y coordinate of the point to brush. param: string $color The color to brush the point with. param: string $shape What brush to use? Defaults to a square. |
| addObserver($method, &$object) X-Ref |
| Add an observer to this image. The observer will be notified when the image's changes. |
| notifyObservers() X-Ref |
| Let observers know that something happened worth acting on. |
| reset() X-Ref |
| Reset the image data. |
| getDimensions() X-Ref |
| Get the height and width of the current image data. return: array An hash with 'width' containing the width, |
| loadString($id, $image_data) X-Ref |
| Load the image data from a string. param: string $id An arbitrary id for the image. param: string $image_data The data to use for the image. |
| loadFile($filename) X-Ref |
| Load the image data from a file. param: string $filename The full path and filename to the file to load return: mixed PEAR Error if file does not exist or could not be loaded |
| toFile($data = false) X-Ref |
| Pas de description |
| display() X-Ref |
| Display the current image. |
| raw($convert = false) X-Ref |
| Returns the raw data for this image. param: boolean $convert If true, the image data will be returned in the return: string The raw image data. |
| _circlePoint($degrees, $diameter) X-Ref |
| Get an x,y pair on circle, assuming center is 0,0. param: double $degrees The degrees of arc to get the point for. param: integer $diameter The diameter of the circle. return: array (x coordinate, y coordinate) of the point. |
| _arcPoints($r, $start, $end) X-Ref |
| Get point coordinates at the limits of an arc. Only valid for angles ($end - $start) <= 45 degrees. param: integer $r The radius of the arc. param: integer $start The starting angle. param: integer $end The ending angle. return: array The start point, end point, and anchor point. |
| factory($driver, $params = array() X-Ref |
| Attempts to return a concrete Horde_Image instance based on $driver. param: mixed $driver The type of concrete Horde_Image subclass to param: array $params A hash containing any additional configuration or return: Horde_Image|boolean The newly created concrete Horde_Image |
| singleton($driver, $params = array() X-Ref |
| 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() param: mixed $driver The type of concrete Horde_Image subclass to param: array $params A hash containing any additional configuration or return: Horde_Image|boolean The concrete Horde_Image reference, or |
| Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |