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
 ParamsFromFile -> IOParams.DpiX not correct (.png)
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Harry M

Austria
4 Posts

Posted - Jun 28 2021 :  06:45:16  Show Profile  Reply
... (and IOParams.DpiY) with ReadPNGStream in 10.0.1

It was correct in 9.2 but in 10.0.1 it delivers 99 dpi instead of the correct 100 DPI.

Tinkering with the code I saw in pngfilt.pas that in 10.0.1 the png params were read with IEWicRead(...) as default -> {ifdef INCLUDEWIC} whereas in 9.2 the native code below was executed with the correct result.

Reverting that resolved my problem so far - but please include a fix for the next version.

I tried to attach some example files - that was not possible; email me for examples if needed.

Harry M

Austria
4 Posts

Posted - Jun 28 2021 :  07:04:52  Show Profile  Reply
WeTransfer Link for some example files where ImageEn reads 99DPI instead of the correct 100:

https://we.tl/t-F4skH2UMN5
Go to Top of Page

xequte

38222 Posts

Posted - Jun 29 2021 :  16:40:30  Show Profile  Reply
Hi

Is this a 32bit or 64bit app?

Please check your PNG engine:

https://www.imageen.com/help/TIEImageEnGlobalSettings.ActivePNGEngine.html

If you are using WIC, then it is now used to DPI information. If this is a 64bit app, you should add ielib64.dll to your EXE folder.


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Harry M

Austria
4 Posts

Posted - Jun 30 2021 :  10:57:24  Show Profile  Reply
It's a 64bit App and by changing comfortable to
IEGlobalSettings().PNGEngine := ieenDLL;
and using the dll:
->IO.paramsfromfile delivers the correct FDPIX of 100dpi.
I'm happy with that.

The Point still stands: with IEGlobalSettings().PNGEngine:= ieenWIC;
->IO.paramsfromfile delivers the wrong value DPIX and DPIY of 99dpi. - please fix for next version. Thanks!
Go to Top of Page

xequte

38222 Posts

Posted - Jul 02 2021 :  00:43:44  Show Profile  Reply
Hi Harry

Yes, we've fixed this rounding error for 10.0.2.



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