On Thu, Jun 07, 2001 at 02:02:10AM -0700, Nick Hoggard wrote:
> Anyone know how to do a filled polygon?

It depends if you want to do an arbitrary fill or an actual polygon.

With an actual polygon, you can simply scan the bounding box and if
you have crossed an odd number of line segments, you should set the
pixel.  This works with things like hourglasses and concave polygons.

There should be plenty of opensource examples in things like Xpaint
and the rest of the X Windows distribution.


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to