| Versionen | |
|---|---|
| drupal6 – drupal7 | _color_gd($img, $hex) |
Convert a hex triplet into a GD color.
modules/
<?php
function _color_gd($img, $hex) {
$c = array_merge(array($img), _color_unpack($hex));
return call_user_func_array('imagecolorallocate', $c);
}
?>
Kommentare
Kommentar hinzufügen