[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

wansch

12/9/2004 12:19:00 PM

Hi,

I drawed to lines with PointF structure in OnPaint. The only difference is,
that line 2 has a different y value (45.4 instead of 45) , but the lines
differ one pixel in lenght.
How can this be?

//Line 1: 11 pixel long
gp.StartFigure();
gp.AddLine(new PointF(25.5f,45.4f),new PointF(36.3f,45.4f));
gp.CloseFigure();

//Line 2: 12 pixel long
gp.StartFigure();
gp.AddLine(new PointF(25.5f,45f),new PointF(36.3f,45f));
gp.CloseFigure();

Thanks for reply.