Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sun, 2010-05-09 at 14:21 +0200, Giorgio wrote: > Thankyou Ashley, > > as I only need 5 colors for each image, my idea was to create a single pixel > image for each color and save it on the hd (so that i don't have to create > it every time). > > I've finally used this code: > > imagecopymerg

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sun, 2010-05-09 at 14:21 +0200, Giorgio wrote: > Thankyou Ashley, > > as I only need 5 colors for each image, my idea was to create a single pixel > image for each color and save it on the hd (so that i don't have to create > it every time). > > I've finally used this code: > > imagecopymerg

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Giorgio
Thankyou Ashley, as I only need 5 colors for each image, my idea was to create a single pixel image for each color and save it on the hd (so that i don't have to create it every time). I've finally used this code: imagecopymerge($base, $img1, 0, 0, 1, 1, 100, 500, 75); imagecopymerge($base, $img

Re: [PHP] PHP GD - Create a "flag"

2010-05-09 Thread Ashley Sheridan
On Sat, 2010-05-08 at 18:48 +0200, Giorgio wrote: > Hi, > > i've just started using GD libraries. My purpose is to create something like > a flag. > > So that i have a 600*600 px background image, and a 1*1 px image for each > colour I need. > > Ok now let's say i want to colour a third of the