Solved

Pixels to cm/inch

Posted on 1998-04-03
1
15,237 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 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