Image_Graph_Color::allocateColor() -- Allocates a color in the given image.
Description
Userdefined color specifications get translated into an array of rgb values.
Parameter
- resource
&$img
GD-resource
- mixed
$color
any color representation supported by color2RGB()
Return value
returns Image color handle
Throws
throws no exceptions thrown
Note
This function can be called
statically.