noreen nori wrote:
> I want draw line pixel using a mouse
> any one u can help me

OS?  Compiler?

In general, you need to be able to retrieve the coordinates of the mouse 
and be able to draw on a generic surface that eventually ends up getting 
displayed.  How you get the mouse coordinates is OS-specific (unless you 
use a GUI toolkit and then it is toolkit-specific) and the same applies 
to creating, "drawing on", and displaying the surface.  Drawing a line 
can be done a number of different ways.  Most people start with 
Bresenham's line algorithm:

http://en.wikipedia.org/wiki/Bresenham's_line_algorithm

It is all downhill from there...

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to