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
 Wrong size and dpi information
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PStadler

Austria
60 Posts

Posted - Mar 13 2016 :  11:59:39  Show Profile  Reply
Hello

I have a lot of jpg and tiff-files, which were produced by using a camera to photograph old books, which cannot be scanned. Both formats seem to have an error. The images have 3456x5184 pixel and they report to have a size of 121x183cm with a dpi of 72. But the books photographed are about A4-Format, that means 21 cm x 29,7 cm.

So how could this error be corrected by using ImageEn?

Any help appreciated!

Sincerely
Peter

xequte

39053 Posts

Posted - Mar 13 2016 :  22:40:56  Show Profile  Reply
Hi Peter

You can just set the dpi of the image, e.g.

ImageEnView1.IO.Params.DpiX := 200;
ImageEnView1.IO.Params.DpiY := 200;

If you use a value of around 420, that gives you A4 size output (though obviously you should write a routine to get the specific values for your images).

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: