Determine dominant image color

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Forum Newbie
Posts: 1
Joined: Tue Feb 26, 2013 9:03 am

Re: Determine dominant image color

Post 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;
Post Reply