Graphics.DrawRectangle(p1, pin.X, pin.Y, 1, 1); this command draws a rectangle of height and width of 1 pixel. But i need to draw the same with a height and width of .2 pixel. Can any one suggest me how to do so?
Specifying height and width in float
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Blocked AccountRank #403 · 6.2K reputationPosted Mar 4, 2008, 9:02 PM EST
I think u can do that like this
Vignesh Thamotharan7 reputationPosted Mar 4, 2008, 10:32 PM EST
AlanRank #669 · 3.6K reputationPosted Mar 5, 2008, 1:41 AM EST
Try setting the following property before you call the DrawRectangle() method:
Graphics.PageUnit = GraphicsUnit.Millimeter;