Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 7:38 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrot

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
I have an annoying habit of not using comments :) Explanations are inline. On Mar 28, 2008, at 7:10 PM, Lamonte <[EMAIL PROTECTED]> wrote: Casey wrote: On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrote: Okay I created a script that changes a basic smiley face into a red smiley

Re: [PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Casey
On Mar 28, 2008, at 4:27 PM, Lamonte <[EMAIL PROTECTED]> wrote: Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: $color = imagecolorallocate($im,hexdec(substr($hex,0,2)),h

[PHP] GD, changing an images pixel color, color matching, fuzzy picture

2008-03-28 Thread Lamonte
Okay I created a script that changes a basic smiley face into a red smiley face..but it doesn't replace all the yellow, it looks like a yellow shadow in the background: $color = imagecolorallocate($im,hexdec(substr($hex,0,2)),hexdec(substr($hex,2,2)),hexdec(substr($hex,4,6))); for($cloneH=0;$