Re: [PHP] PHP GD - Create a flag

2010-05-09 Thread Giorgio
here: http://aagmns47.facebook.joyent.us/sdna/. I think that copying a 1*1 image (and as said i'll cache all 1*1 colors on the hd) on a background is less resource-expensive than creating a coloured rectangle every time, isn't it? Giorgio 2010/5/9 Ashley Sheridan a...@ashleysheridan.co.uk

[PHP] PHP GD - Create a flag

2010-05-08 Thread Giorgio
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 background image. I can use this code: imagecopymerge($base, $img1,