Solved

Pixels to cm/inch

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 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

16 Experts available now in Live!

Get 1:1 Help Now