Solved

Pixels to cm/inch

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi selector screen 2 78
TEMBEDDEDWB how can i change its user agent ? 8 55
how can i search if string exist in array ? 3 55
Delphi...Split view - idea? 1 67
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

815 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

8 Experts available now in Live!

Get 1:1 Help Now