Unit conversion of centimeters to pixels

Source: Internet
Author: User

1 cm equals how many pixels

The problem is designed when the customer asks the map to display a map of how much.

The answer on the Internet is that this is the wrong answer, or that 1 centimeters equals 25 pixels.
I know this problem is related to the size of the screen because my monitor is about 1 centimeters over 30 pixels.
The following calculations have been made for the purpose of the exploration.

Hypothetical premise:
A. 1 inches is 25.4 mm
B. A 19-inch screen indicates that the length of the display diagonal is 19 inches
C. display resolution is 1024x768
D. The display is the same as the distance between pixels in the horizontal unit and the vertical unit pixels


Specific calculation:
1.19-inch screen
I'm just using a 19-inch widescreen LCD monitor.
I'll give you a measure. Width 41.2 cm tall is about 26 centimeters.



First calculate the length and width of the display:
19 inch = 482.6 mm
1024x768
Set width to W, height to H
Then W:h=1024:768=4:3
w= (1024/768) H = (4/3) h
w^2+h^2 = (482.6) ^2
(16/9+1) * h^2 = 232902.76 mm^2
(25/9) * h^2 = 232902.76 mm^2
h^2 = 83844.9936 mm^2
H. = 289.56 mm
W. = 386.08 mm

1 pixels = (386.08/1024) mm. = 0.377031 mm
1 mm. = 2.6523 pixels
1 cm. = 27 pixels




2.15-inch screen
15 inch = 381.0 mm
(16/9+1) * h^2 = 145161.00 mm^2
h^2 = 52257.96 mm^2
h = 228.6 mm
W = 304.8 mm
1 pixels = (304.8/1024) mm. = 0.29765625 mm
1 mm. = 3.3595800524934383202099737532808
1 cm. = 34 pixels

3. N-inch screen
n inch = 25.4 * N mm
(25/9) * h^2 = (25.4*n) ^2 mm^2
h^2 = 25.4^2 * n^2 * 9/25 mm
H = 25.4 * N * 3/5 mm
= 15.24 * N mm
w = 20.32 * N mm
1 pixels = (20.32 * n/1024) mm = (0.01984375 * N) mm
1mm = (50.3937007/n) pixels
1 cm = (503.937007/n) pixels

4. Several common N-values
15 inches: 1 cm = 34 pixels
17 inches: 1 cm = 30 pixels
19 inches: 1 cm = 27 pixels
20 inches: 1 cm = 25 pixels
22 inches: 1 cm = 23 pixels

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.