Switch to full style
For C/C++ coders discussions and solutions
Post a reply

Free hand drawing

Sat Nov 08, 2008 11:14 pm

I am trying to draw a free hand line or curve ... but I am not able to
succeed. If anybody knows an algorithm/program for free hand drawing ....
please share with me.



Re: Free hand drawing

Sat Nov 08, 2008 11:18 pm

Depending on the API for the OS/platform, there should be a way to draw
a sequence of lines. At each polling interval for the mouse, grab the
coordinates and draw a line from the previous coordinates. This tends to
produce a smoother, more complete line.

There are algorithms for drawing single pixel
anti-aliased lines:

http://courses.ece.uiuc.edu/ece390/arch ... /anti.html

But such algorithms don't typically scale well beyond a single pixel.

Post a reply
  Related Posts  to : Free hand drawing
 Change the mouse cursor to hand pointer     -  
 Free down the ST0-47X Test from Ourexam     -  
 Free Classifieds and Ads in Dubai(UAE)     -  
 Looking for developers to help in free and opensource projec     -  
 Free practice tests on SAP and SCM Concepts     -  
 Free Work at Home Info Pack     -  
 Get disk free space for Unix-Linux in php     -  
 web hosting sites free check out important useful     -  
 Free Quality Comparison Guide to VoIP     -  
 Call of duty 4 Mobile Game Free Download     -