PHP GD - Create a "flag"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, 0, 0, 0, 0, 200, 600, 85);

It will simply make red first 200 px (on x axys) of the bg image. And this
work.

Now the problem is: how can i add another colour on pixels from 201 (201
right? not 200?) to 400?

Thankyou

-- 
--
AnotherNetFellow
Email: anothernetfellow@xxxxxxxxx

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux