On Wed, Aug 25, 2004 at 03:27:08AM -0400 Luc Le Blanc [EMAIL PROTECTED] wrote:
> I need to fill a trapezoidal area. i.e. a rectangle with unequal sides.
> I see no API for that, nor something like "WinFillArea" that would color
> every pixel around the given start location until hitting a different
> color (like a paint tool in basic paint programs). Are there suitable
> APIs for that, or is there a graphics shared library freely available to
> do that?
Hi,
the best way is to tesselate the polygon (you don't care about covex/concave),
and fill all the triangles you created. Filling a triangle is simple.
/tom
> --
> Luc Le Blanc
>
--
===============================================================================
Tomas Meinlschmidt, SBN3, MCT, MCP, MCP+I, MCSE, NetApp Filer & NetCache
gPG fp: CB78 76D9 210F 256A ADF4 0B02 BECA D462 66AB 6F56 / $ID: 66AB6F56
GCS d-(?) s: a- C++ ULHISC*++++$ P+++>++++ L+++$>++++ E--- W+++$ N++(+) !o
!K w(---) !O !M V PS+ PE Y+ PGP++ t+@ !5 X? R tv b+ !DI D+ G e>+++
h---- r+++ z+++@
===============================================================================
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/