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
ForGive My Poor English,I hope you Can catch my mean
use:
MoveToEx (hdc, x1, y2, NULL)
LineTo (hdc, x2, y2)
this will draw a line from (x1, y1) to (x2, y2) with current pen.
MoveToEx (hdc, x1, y2, NULL)
LineTo (hdc, x2, y2)
this will draw a line from (x1, y1) to (x2, y2) with current pen.
Thank you for your reply.
Maybe I've made some mistake in my math algo,I'll check it later
thanks
Maybe I've made some mistake in my math algo,I'll check it later
thanks