Click here to Skip to main content
15,077,494 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How we calculate Pixel to point conversion in c#.
Updated 13-Jul-20 20:43pm
BobJanova 27-Oct-11 8:55am
Don't post the same question twice.

Here is a solution for you :
How To Convert Pixel To Point ?[^]
float points;
float pixels = 100;
Graphics g = CreateGraphics();
points = pixels * 72 / g.DpiX;

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