|
-
Mar 20th, 2007, 01:04 PM
#1
Thread Starter
Addicted Member
[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?
-
Mar 20th, 2007, 02:07 PM
#2
Thread Starter
Addicted Member
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?
-
Mar 20th, 2007, 02:15 PM
#3
Re: [2005] VB.Net Printing coordinates
Measurement is in tenths of a millimeter.
Therefore 1160 = 116 mm or 11.6 cm
-
Mar 20th, 2007, 02:24 PM
#4
Thread Starter
Addicted Member
Re: [2005] VB.Net Printing coordinates
-
Mar 20th, 2007, 04:48 PM
#5
Hyperactive Member
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.
If my post helps , please feel free to rate it 
-
Mar 20th, 2007, 05:35 PM
#6
Thread Starter
Addicted Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|