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?
Loading
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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AlanPosted Mar 5, 2008, 6:41 AM
Try setting the following property before you call the DrawRectangle() method:
Graphics.PageUnit = GraphicsUnit.Millimeter;
Vignesh ThamotharanPosted Mar 5, 2008, 3:32 AM
Blocked AccountPosted Mar 5, 2008, 2:02 AM
I think u can do that like this