Page 2 of 2

Re: Determine dominant image color

Posted: Tue Feb 26, 2013 9:12 am
by xuito
To fix code, please do this:

Code: Select all

$rgb = imagecolorat($i,$x,$y);
                        $r   = ( $rgb >> 16) & 0xFF;
                        $g   = ($rgb >> 8)  & 0xFF;
                        $b   = $rgb & 0xFF;