Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

convert from pixel to mm/cm/inches

Posted on 2006-07-15
1
Medium Priority
?
11,037 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 1500 total points
ID: 17114740

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Loops Section Overview

971 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