PHP Developers Network
http://forums.devnetwork.net/

Determine dominant image color
http://forums.devnetwork.net/viewtopic.php?f=32&t=39594
Page 2 of 2

Author:  xuito [ Tue Feb 26, 2013 10:12 am ]
Post subject:  Re: Determine dominant image color

To fix code, please do this:

Syntax: [ Download ] [ Hide ]
$rgb = imagecolorat($i,$x,$y);
                        $r   = ( $rgb >> 16) & 0xFF;
                        $g   = ($rgb >> 8)  & 0xFF;
                        $b   = $rgb & 0xFF;
 

Page 2 of 2 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/