[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Image/Canvas/ -> Color.php (sommaire)

Class for color-handling

Author: Stefan Neufeind <pear.neufeind@speedpartner.de>
License: The PHP License, version 2.02
Poids: 182 lignes (7 kb)
Inclus ou requis: 4 fois
Référencé: 0 fois
Nécessite: 1 fichier
 Image/Color.php

Définit 1 class

Image_Canvas_Color:: (4 méthodes):
  allocateColor()
  color2RGB()
  getRange()
  _setColors()


Classe: Image_Canvas_Color  - X-Ref

Class for color-handling

This is used to extend the functionality of the current PEAR::Image_Color v0.4.
I hope to be allowed to incorporate some of the improvements in a new Image_Color release.

allocateColor(&$img, $color)   X-Ref
Allocates a color in the given image.

Userdefined color specifications get translated into
an array of rgb values.

param: resource        GD-resource
param: mixed           any color representation supported by color2RGB()
return: resource        Image color handle

color2RGB($color)   X-Ref
Convert any color-representation into an array of 4 ints (RGBA).

Userdefined color specifications get translated into
an array of rgb values.

param: mixed         any color representation supported by Image_Canvas_Color::color2RGB()
return: array         Array of 4 ints (RGBA-representation)

getRange($degrees)   X-Ref
getRange
Given a degree, you can get the range of colors between one color and
another color.

param: string    How much each 'step' between the colors we should take.
return: array     Returns an array of all the colors, one element for each color.

_setColors( $col1, $col2 )   X-Ref
Internal method to correctly set the colors.

param: mixed         color 1
param: mixed         color 2



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7