Solved

convert from pixel to mm/cm/inches

Posted on 2006-07-15
1
10,175 Views
Last Modified: 2012-08-13
Hi,

I am doing a art work design software..
is there anyway i can convert from the label location X, Y into mm/cm/inches?

wut i did was something like Vb.NET IDE, where the user can move the label around on my canvas..
and they can set the X, Y location of the label as well

how can I let them set the mm/cm/inches, rather than x y in pixel?

Thanks in advance.
0
Comment
Question by:cybeh
1 Comment
 
LVL 8

Accepted Solution

by:
Shakti109 earned 500 total points
Comment Utility

Unfortunately there is no direct, set conversion.

This will totally depend on : The screen resolution and the size of the monitor.

As an example :
100 pixels = 3.31cm (1.23inches), when the screen resolution is set to 1024 by 768.

This changes to :
100 pixels = 4.00cm (1.58inches) when the screen resolution is set to 800 x 600.


You can convert between values, but the relative "size" of each will depend on the resolution and monitor size (most monitors do not display their full edge-to-edge size).

For a very long discussion on this, and some definitions of the terms (dots per inch, pixels per inch), see the following :

http://www.dotnetforums.net/t72094.html

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now