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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ParamsFromFile -> IOParams.DpiX not correct (.png)

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Harry M Posted - Jun 28 2021 : 06:45:16
... (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.
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 02 2021 : 00:43:44
Hi Harry

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



Nigel
Xequte Software
www.imageen.com
Harry M Posted - Jun 30 2021 : 10:57:24
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!
xequte Posted - Jun 29 2021 : 16:40:30
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
Harry M Posted - Jun 28 2021 : 07:04:52
WeTransfer Link for some example files where ImageEn reads 99DPI instead of the correct 100:

https://we.tl/t-F4skH2UMN5