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
 Can't load PNG files [solved]

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
progfin Posted - Jun 22 2011 : 04:05:31
I've tryied
ImageEnVect.IO.LoadFromFilePNG( 'c:\Image\1.png' );
or for a stream...
ImageEnVect.IO.LoadFromStreamPNG( aStream );
I traced and found out that it always end in the finalize statement of function

unit pngfilt;

procedure ReadPNGStream(Stream: TStream; Bitmap: TIEBitmap; var IOParams: TIOParams; var xProgress: TProgressRec; Preview: boolean);
....
png_ptr := png_create_read_struct('1.2.14', Error_ptr, @ErrorFunc, @WarnFunc);

It work correctly in Delphi7, but it doesn't work at Delphi XE
10   L A T E S T    R E P L I E S    (Newest First)
progfin Posted - Jun 23 2011 : 07:20:51
I have ununstall TMS and clean all files from TMS.
And ImageEn works correctly.

Now will try to define ImageEn-path in "Options-Library Path" before TMS.
w2m Posted - Jun 23 2011 : 07:05:18
Whoops... I missed that... no I run Delphi 2010.

William Miller
fab Posted - Jun 23 2011 : 06:41:00
Hi Bill!
Do you have also Delphi XE?
w2m Posted - Jun 23 2011 : 06:11:31
I have TMS Components installed along with ImageEn here and I do not have any problem loading png files, however, I generaly just use LoadFromFile.

William Miller
fab Posted - Jun 23 2011 : 00:48:02
Please try to disable TMS components, temporarily.
progfin Posted - Jun 23 2011 : 00:17:19
I have 3.1.1 version of ImageEn
and EmbarcaderoŽ DelphiŽ XE Version 15.0.3953.35171

I have installed TMS Component Pack v6.0.4.0 release Apr 30, 2011 and ImageEn.
fab Posted - Jun 22 2011 : 14:09:04
I just re-tested loading of PNG files (using LoadFromFilePNG) with version 3.1.2 and last libs.zip file, and, of course Delphi XE (15.0.3953.35171). It works.

Have you other third part components installed?
progfin Posted - Jun 22 2011 : 05:48:50
*.bdsproj
*.dpk
*.dproj
*.res
*.dproj.local
progfin Posted - Jun 22 2011 : 05:41:52
Yes, I've put the whole content of "libs.zip" in the same directory of ImageEn (where are the .pas files).

In Delphi7 and Delphi XE contens of imageEN folder are the same, except package-files (*.pgk, *.res and so on)
fab Posted - Jun 22 2011 : 05:31:03
Compiling ImageEn, have you put the whole content of "libs.zip" in the same directory of ImageEn (where are the .pas files)?

This error occurs when Delphi links a different PNG library version than the one (1.2.14) supported by ImageEn.