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
 Can't load PNG files [solved]
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

progfin

Russia
5 Posts

Posted - Jun 22 2011 :  04:05:31  Show Profile  Reply
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

fab

1310 Posts

Posted - Jun 22 2011 :  05:31:03  Show Profile  Reply
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.
Go to Top of Page

progfin

Russia
5 Posts

Posted - Jun 22 2011 :  05:41:52  Show Profile  Reply
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)
Go to Top of Page

progfin

Russia
5 Posts

Posted - Jun 22 2011 :  05:48:50  Show Profile  Reply
*.bdsproj
*.dpk
*.dproj
*.res
*.dproj.local
Go to Top of Page

fab

1310 Posts

Posted - Jun 22 2011 :  14:09:04  Show Profile  Reply
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?
Go to Top of Page

progfin

Russia
5 Posts

Posted - Jun 23 2011 :  00:17:19  Show Profile  Reply
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.
Go to Top of Page

fab

1310 Posts

Posted - Jun 23 2011 :  00:48:02  Show Profile  Reply
Please try to disable TMS components, temporarily.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 23 2011 :  06:11:31  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Jun 23 2011 :  06:41:00  Show Profile  Reply
Hi Bill!
Do you have also Delphi XE?
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 23 2011 :  07:05:18  Show Profile  Reply
Whoops... I missed that... no I run Delphi 2010.

William Miller
Go to Top of Page

progfin

Russia
5 Posts

Posted - Jun 23 2011 :  07:20:51  Show Profile  Reply
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: