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

x
?
Solved

Pixels to cm/inch

Posted on 1998-04-03
1
Medium Priority
?
15,276 Views
Last Modified: 2012-05-04
Help me! I want to convert pixels to cm/inch. As we know that indent property in TRichEdit uses LongInt type which refer to pixels.
So, please give me a formula to convert pixels to cm /inch!

Thanks

Daniel
0
Comment
Question by:dcmc
1 Comment
 
LVL 3

Accepted Solution

by:
KE earned 30 total points
ID: 1361259
First of all you will need to determine which DPI (dots per inch) you will be using. The screen DPI is typically 72 for standard 15" monitors, but it will grow if you use larger monitors. A 21" monitor will have a DPI value of aprox 112 if it runs in a resolution of 1600x1200.
After you have determined your DPI value, you can convert it to pixels/per inch by multilying the inch value by the DPI value.

Ex. 72 DPI:
2 inches indention (in pixels) = DPI*2

72 DPI gives (72/2.54) DPCM (which is dots per cm)
2 cm indention (in pixels) = DPCM*2

Remember that the DPI value is different on various equipment - ex. printers DPI is typically 300 to 1200.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

927 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