你画矩形是可以指定度量单位的,就如bobshen那样可以指定为毫米为度量单位的,这样你画出来的矩形就是以毫秒为单位的,具体实现如下:
// Create a rectangle.
Rectangle rectangle1 = new Rectangle(0, 0,1000, 1000);
// Change the page scale.
e.Graphics.PageUnit = GraphicsUnit.Millimeter;
// Draw the rectangle again.
e.Graphics.DrawRectangle(Pens.Tomato, rectangle1);
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer.
my sample