Click here to Skip to main content
15,912,507 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Excel, the height of rows are entered in points and converted into pixels.
As I thought the pixel was the unit for height I was very surprised to see these conversions .....
Left: The unit of points (manually entered) for the height lines
Right: conversion in pixels from Excel
213.67 units = 284 pixels
213.68 units = 286 pixels
213.69 units = 286 pixels
Why when I go from 213.67 to 213.68 points, the number of pixels increases from 284 to 286?
Do you have any idea why?
Daniel
Posted

It depends on the resolution of the output device. Points are absolute values of 1/72 inches, whereas pixels are arbitrary values based on the physical size of the device and the resolution in use.
 
Share this answer
 
Richard,
Thanks for your response
My screen is ACER X263W
My resolution is 1680 x 1050.
Pixel Pitch is 0.287mm (per Acer Specs)

Is there enough information to find the formula for conversion of points to pixels?
If not can you please advise what info would be missing?

Thanks again
Daniel
 
Share this answer
 
I hope this should answer your question How to convert Pixels to Points (px to pt) in .NET? (C#)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900