I' m coding a program to draw the picture of a function,when I used "SetPixel",it work's very well,but when I used "LintTo",it fill the rect from the function to coordinate.Can someone can tell me Why it happend?

ForGive My Poor English,I hope you Can catch my mean
Posted on 2002-04-25 06:33:25 by purefiring
use:

MoveToEx (hdc, x1, y2, NULL)
LineTo (hdc, x2, y2)

this will draw a line from (x1, y1) to (x2, y2) with current pen.
Posted on 2002-04-25 08:29:00 by beaster
Thank you for your reply.
Maybe I've made some mistake in my math algo,I'll check it later
thanks
Posted on 2002-04-25 08:45:50 by purefiring