ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 JPG Files
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

fabiotesla

Italy
10 Posts

Posted - Sep 18 2015 :  08:00:57  Show Profile  Reply
Hi,
I have a question about .JPG file:
I would like to know how to read the size (width and height) in mm (or in cm) of the jpg files taking into account their resolution in DPI
Thank You

xequte

39053 Posts

Posted - Sep 19 2015 :  05:19:11  Show Profile  Reply
Hi

Width in inches of an image: Trunc( ImageEnView1.IO.Params.Width / ImageEnView1.IO.Params.DPIX );
Height in inches of an image: Trunc( ImageEnView1.IO.Params.Height / ImageEnView1.IO.Params.DPIY );

If you are from a country other than the three that don't use the metric system, you should multiply that by 25.4 to get the result in mm.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 19 2015 :  07:13:50  Show Profile  Reply
25.4 not 25.2

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

39053 Posts

Posted - Sep 19 2015 :  20:41:49  Show Profile  Reply
Yes, sorry, it is 25.4. I've updated the text.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

fabiotesla

Italy
10 Posts

Posted - Sep 21 2015 :  03:31:34  Show Profile  Reply
Perfect!
Thank you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: