Total members 10249 | Gratitudes |It is currently Thu May 17, 2012 8:02 am Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 2 posts ] 
Author Question
 Question subject: Free hand drawing
PostPosted: Sat Nov 08, 2008 11:14 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

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.


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Free hand drawing
PostPosted: Sat Nov 08, 2008 11:18 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
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.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 2 posts ] 
Quick reply


  

 Similar topics
 Drawing Torus using OpenGL
 Drawing cone using openGL
 Drawing Octahedron using openGL
 Drawing and rotating Tetrahedron with animation
 Drawing teapot using OpenGL.
 drawing a rotating sphere
 Call of duty 4 Mobile Game Free Download
 Looking for developers to help in free and opensource projec
 Change the mouse cursor to hand pointer
 Learn Technical analysis and stock market tricks for free

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: Google Adsense [Bot] and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team