Re: [GD-DEVEL] Filling polygons with holes

[email protected] (Brian Peschel) Thu, 02 Oct 2008 06:59:30 -0500
Newsgroups php.gd.devel
Message-ID <[email protected]>
That looks like what I want.  Assuming of course that the hole doesn't 
have to be the background color.  I will have overlapping filled 
polygons with holes, so the color of the 'hole' isn't necessarily the 
background color.

Is there sample code somewhere for the images?

- Brian

Pierre Joye wrote:
> hi,
>
> On Tue, Sep 30, 2008 at 10:09 PM, Brian Peschel <[email protected]> wrote:
>   
>> Is there an easy way to do filled polygons with holes?  Think a donut where
>> I want to fill the donut, but not the hole.
>>
>> I suppose I could do something where I am create an png image just of the
>> polygon with transparent color for the hole and outside the polygon....
>>     
>
> Do you mean something like that:
>
> http://pierre.libgd.org/polygons/
>
> Cheers,
>   

-- 
Brian Peschel
One Call Concepts, Inc
Systems Division

Voice: 414-259-1047 ext. 93
Fax: 414-777-3666