472,980 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,980 software developers and data experts.

convert points, pixels & millimeters

Hi guys,

Does anyone know the conversions for the above (relationship between each of
the above).
Ie how many points makeup a pixel & how many pixels make up a point.

--
Besty Regards,
TJ
Nov 20 '05 #1
13 23116
Cor
Hi TJ,

Fergus did make it once
http://groups.google.com/groups?q=in...phx.gbl&rnum=2

I think that will help?

Cor
Nov 20 '05 #2
"T.Jackson" <tj@mymail.com> schrieb

Does anyone know the conversions for the above (relationship between
each of the above).
Ie how many points makeup a pixel & how many pixels make up a
point.


Depends on the device. To get the dots per inch, see the DpiX and DpiY
properties of the System.Drawing.Graphics object. You get one in OnPaint
(argument e.graphics) or create a new one outside OnPaint
(Control.CreateGraphics).

20 points = 1 inch = 2.54cm = 25.4mm

--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #3
* "Cor" <no*@non.com> scripsit:
Fergus did make it once

http://groups.google.com/groups?q=in...phx.gbl&rnum=2


Canonical URL:

<http://groups.google.com/groups?selm=uMtwIV8eDHA.988%40TK2MSFTNGP10.phx.gbl >

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
* "Cor" <no*@non.com> scripsit:
How you do that?


Removing parts that are not necessary for finding the message. The
'selm' parameter followed by the message ID will include enough
information to identify the message.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #6
* "Cor" <no*@non.com> scripsit:
How you do that?


I forgot to mention this script (nevertheless, I always remove the party
by hand):

<http://www.centauri.org/~neild/google.cgi>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #7
Cor
Thanks
Nov 20 '05 #8
Yet another alternative to the long URLs (i.e. use TinyURL -
http://tinyurl.com):

http://tinyurl.com/2fzx9
Trev.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Om**************@tk2msftngp13.phx.gbl...
* "Cor" <no*@non.com> scripsit:
Fergus did make it once
http://groups.google.com/groups?q=in...phx.gbl&rnum=2
Canonical URL:

<http://groups.google.com/groups?selm...TNGP10.phx.gbl

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #9
Cor
Hi Trev,

Thanks is beside the other one in my favorites.

Cor
Nov 20 '05 #10
* "Trev Hunter" <hu*********@hotmail.com> scripsit:
Yet another alternative to the long URLs (i.e. use TinyURL -
http://tinyurl.com):

http://tinyurl.com/2fzx9


ACK, but those URLs are not canonical. One resource on the net should
only have one URL (the canonical address). When using services like
TinyUrl or MakeAShorterLink, URLs are not necessarily canoncical.

If in the yar 2010 TinyUrl closes its service, URLs will become
useless. The original Google URLs will include the message ID which
will make locating the message easier even if Google doesn't provide its
archive any more.

Just my 2 Euro cents.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
Good point. I'll try to provide the canoncical version if possible in the
future and reserve TinyURL for an option in cases when linebreaks can still
mess up.

Trev.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eK**************@tk2msftngp13.phx.gbl...
* "Trev Hunter" <hu*********@hotmail.com> scripsit:
Yet another alternative to the long URLs (i.e. use TinyURL -
http://tinyurl.com):

http://tinyurl.com/2fzx9


ACK, but those URLs are not canonical. One resource on the net should
only have one URL (the canonical address). When using services like
TinyUrl or MakeAShorterLink, URLs are not necessarily canoncical.

If in the yar 2010 TinyUrl closes its service, URLs will become
useless. The original Google URLs will include the message ID which
will make locating the message easier even if Google doesn't provide its
archive any more.

Just my 2 Euro cents.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #12
* "Trev Hunter" <hu*********@hotmail.com> scripsit:
Good point. I'll try to provide the canoncical version if possible in the
future and reserve TinyURL for an option in cases when linebreaks can still
mess up.


ACK. That's what I am doing at the moment (some times ago I used
TinyUrl too but then somebody told be about the disadvantages) too.

:-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #13
Thanx.

"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi TJ,

Fergus did make it once
http://groups.google.com/groups?q=in...phx.gbl&rnum=2
I think that will help?

Cor

Nov 20 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Anne | last post by:
I am creating text box controls "on the fly" for strings of varying lengths. I want to make the text box size match the size of the string. How do I convert the length of the string (len) to...
4
by: Ma Xiaoguang | last post by:
Dear ladies and gentlemen: How to access all the pixels of a bitmap with C#? I am working with Delphi before. In Delphi, you can use TBitmap.Scanline property to access all the pixels of a...
2
by: Ricardo Furtado | last post by:
I'm programming in visual basic .net and i need to determine the size, in millimeters, of some lines on a picturebox (determined by points). i've been searching in google but i found nothing except...
4
by: perspolis | last post by:
Hi all I have some points in twips measurement.how can I convert them to pixel measurement ? thanks
7
by: GD1 | last post by:
Dear developers, is there any way I can calculate the height in millimeters of a font at a certain size? Thank you in advance.
8
by: Robert Dufour | last post by:
I been trying to look for samplecodes on how to create a simple tif file. I found a lot of commercial and stuff but I would prefer to roll my own. I only need to put some formatted text in a tif...
2
by: Laszlo Nagy | last post by:
Hi, I would like to have a function that can convert '&gt;' into '>', '&amp;' into '&' etc. I could not find how to do it easily (I have a code snippet for the opposite). Thanks, Laszlo
1
by: Nitzan Tomer | last post by:
hi everyone, i created a script that outputs an image (transparent with text) based on parameters passed by $_GET. everything in my application works with 'pixels' and since GD2 this function...
1
by: asirappadu | last post by:
I have string in {&HF3,&HA1,&H01} i want to convert it to byte array like {&HF3,&HA1,&H01}
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.