__construct() __construct() : mixed Save RGB value into the classes. There are 4 way to associate color with this classes : Gives 3 parameters int (R, G, B) Gives 1 parameter string hex value (#ff0000) (preceding with #) Gives 1 parameter int hex value (0xff0000) Gives 1 parameter string color code (white, black, orange...) Returns mixed —
setTransparent() setTransparent(bool $transparent) : mixed Sets the color transparent. Parameters bool $transparent Returns mixed —
allocate() allocate(resource $im) : int Returns the int value for PHP color. Parameters resource $im Returns int —
getColor() getColor(string $code, string $default = 'white') : mixed Returns class of BCGColor depending of the string color. If the color doens't exist, it takes the default one. Parameters string $code string $default Returns mixed —