I write these below program to draw a rectangle which have black frame. In the rectangle have 4 red points and I draw the line between 2 point. So I get the result as this picture http://www.geocities.com/ooosawaddee...intPicture.jpg
In the picture the red point is very small and the line between point is not exactly straight. I want the larger red point and straight line. Do you know how to do that?
Code:pDC->SetMapMode(MM_TEXT); // Paint white color as the background pDC->FillSolidRect(origin.x, origin.y, 2000, 2000, RGB(255,255,255)); int cx = 5; int cy = 5; CPen pen, pen2; pen.CreatePen(PS_SOLID,2, RGB(0,0,0)); pDC->SelectObject(&pen); pDC->Rectangle(cx,cy,(cx +256), (cy + 192)); pDC->SetPixel(45,10, RGB(255,0,0)); pDC->SetPixel(47,9, RGB(255,0,0)); pDC->SetPixel(79,45, RGB(255,0,0)); pDC->SetPixel(46,120, RGB(255,0,0)); pen2.CreatePen(PS_SOLID,1, RGB(0,0,255)); pDC->SelectObject(&pen2); pDC->MoveTo(45,10); pDC->LineTo(79,45);



LinkBack URL
About LinkBacks


