function _imageapi_gd_pixel_grayscale in ImageAPI 5
Same name and namespace in other branches
- 6 imagefilter.inc \_imageapi_gd_pixel_grayscale()
1 string reference to '_imageapi_gd_pixel_grayscale'
File
- ./
imagefilter.inc, line 60
Code
function _imageapi_gd_pixel_grayscale(&$r, &$g, &$b, &$a) {
$r = round($r * 0.299 + $g * 0.587 + $b * 0.114);
$g = $r;
$b = $r;
}