211a212,236
>  * Convert an image resource to a given color scale.
>  *
>  * @param $image
>  *   An image object. The $image->resource value will be modified by this call.
>  * @param $red
>  *   The amount of red color
>  * @param $blue
>  *   The amount of red color
>  * @param $green
>  *   The amount of red color
>  * @param $alpha
>  *   Alpha channe
>  * @return
>  *   TRUE or FALSE, based on success.
>  */
> function imageapi_gd_image_colorize(&$image, $red, $blue, $green, $alpha) {
>   // PHP installations using non-bundled GD do not have imagefilter.
>   if (!function_exists('imagefilter')) {
>     require_once drupal_get_path('module', 'imageapi_gd') .'/imagefilter.inc';
>   }
> 
>   return imagefilter($image->resource, IMG_FILTER_COLORIZE, $red, $blue, $green, $alpha);
> }
> 
> /**
