🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.comp.sys.palmtops.pilot
3 messages
3 total messages Started by Kevin Wittmer Tue, 24 Jul 2001 06:06
C++ src for drawing graphics
#254
Author: Kevin Wittmer
Date: Tue, 24 Jul 2001 06:06
9 lines
1719 bytes
Hello,

Please reply back to this new postings if you know a good source on the web
for sample C++ CodeWarrior/Palm source code projects that demonstrate how to
draw simple graphics such as lines and circles on a Palm PDA.

Thanks in advance,

   Kevin
Re: C++ src for drawing graphics
#255
Author: notgeorgefigole
Date: Tue, 24 Jul 2001 08:56
19 lines
1444 bytes

Might try coding newsgroups at http://www.massena.com.


"Kevin Wittmer" <kwittmer@sprintmail.com> wrote:

>Hello,
>
>Please reply back to this new postings if you know a good source on the web
>for sample C++ CodeWarrior/Palm source code projects that demonstrate how to
>draw simple graphics such as lines and circles on a Palm PDA.
>
>Thanks in advance,
>
>   Kevin
>
>
>
Re: C++ src for drawing graphics
#253
Author: Mark
Date: Fri, 03 Aug 2001 17:56
46 lines
2335 bytes
The Palm API includes functions for drawing rectangles, lines, & pixels.
Here's some code for circle drawing (modified Bresenham algorithm).

void DrawCircle( int xc, int yc, int r)
{
 int x = 0;
 int y = r;
 int p = 3 - 2 * r;

 while (x <= y)
 {
  WinDrawPixel(xc + x, yc + y);
  WinDrawPixel(xc - x, yc + y);

  WinDrawPixel(xc + x, yc - y);
  WinDrawPixel(xc - x, yc - y);

  WinDrawPixel(xc + y, yc + x);
  WinDrawPixel(xc - y, yc + x);

  WinDrawPixel(xc + y, yc - x);
  WinDrawPixel(xc - y, yc - x);

  if (p < 0)
   p += 4 * x++ + 6;
  else
   p += 4 * (x++ - y--) + 10;
 }
 }

"Kevin Wittmer" <kwittmer@sprintmail.com> wrote in message
news:Kf877.11747$Xn.1411793@newsread1.prod.itd.earthlink.net...
> Hello,
>
> Please reply back to this new postings if you know a good source on the
web
> for sample C++ CodeWarrior/Palm source code projects that demonstrate how
to
> draw simple graphics such as lines and circles on a Palm PDA.
>
> Thanks in advance,
>
>    Kevin
>
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads