Solved

Pixels to cm/inch

Posted on 1998-04-03
1
15,257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
KE earned 10 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

622 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