[RESOLVED] [2005] VB.Net Printing coordinates
Hi all;
I will use system.drawing for puting some strings to a ready form. But I need to match strings to several places on the form. To do this I have to match coordinates. The problem is that I dont know which unit the coordinates are?
Is it twink, inch, cm, mm?
Re: [2005] VB.Net Printing coordinates
nobody knows? Ok more detailed: for example we have
vb Code:
e.Graphics.DrawString("sdf", System.Drawing.SystemFonts.CaptionFont, Brushes.BlueViolet, 0, 1160)
...,0,... is the x coordiante
...,1160,.... is the y coordinate.
But I want to know what 1160 means on real paper. How much mm is it? Does anybody know?
Re: [2005] VB.Net Printing coordinates
Measurement is in tenths of a millimeter.
Therefore 1160 = 116 mm or 11.6 cm
Re: [2005] VB.Net Printing coordinates
Re: [2005] VB.Net Printing coordinates
You can set the units to whatever you want by setting the graphics PageUnit property.....
vb Code:
Dim g as Graphics=e.graphics
g.PageUnit=GraphicsUnit.millimeter
Would set the units to millimeters so any drawings sizes would be in millimeters.
Re: [2005] VB.Net Printing coordinates
Thanks all. I have found out that in my one it is 40 =1 cm. I will use this scala. Thanks for your help...