>I'm in the process of adding pie charts to my program. This would look
>very cool with color! Only problem is that there is no fill function in
>the OS. I've thought about writing my own recursive fill function but
>there is also no way to know if a pixel is on or not!

Palm OS 3.5 now includes an API, WinGetPixel.  From Window.h:

  extern IndexedColorType WinGetPixel (Coord x, Coord y)
     SYS_TRAP(sysTrapWinGetPixel);

  extern void WinPaintPixel (Coord x, Coord y)
     SYS_TRAP(sysTrapWinPaintPixel);

  extern void WinDrawPixel (Coord x, Coord y)
     SYS_TRAP(sysTrapWinDrawPixel);

Go for it!

-David Fedor
Palm Developer Support



---
For information on using the Palm Developer Forums, or to unsubscribe, please see 
<http://www.palm.com/devzone/mailinglists.html>.

Reply via email to