Image_Graph_Color::allocateColor()

Image_Graph_Color::allocateColor() -- Allocates a color in the given image.

Synopsis

require_once '/Graph/Color.php';

resource Image_Graph_Color::allocateColor (resource &$img, mixed $color)

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

See

see Image_Graph_Color::color2RGB()

Note

This function can be called statically.