Re: [GD-DEVEL] Filling polygons with holes

From: Date: Thu, 02 Oct 2008 11:59:30 +0000
Subject: Re: [GD-DEVEL] Filling polygons with holes
References: 1 2 3  Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-477@lists.php.net to get a copy of this message
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 <brianp@occinc.com> 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

« previous php.gd.devel (#477) next »