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
 JPG files now loaded progressively?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Uwe

284 Posts

Posted - Sep 03 2012 :  14:42:39  Show Profile  Reply
Hi,

Has the code for handling JPG files changed somehow in the latest version of ImageEN? I've noticed that JPG, JPEG and JPE images are now loaded progressively into an ImageENVect instead of in one go.

Thx
Uwe


EDIT:
I'm using ImageENVect1.LockPaint and .UnlockPaint within a thread here. Seems that the loading of JPG's in this context isn't thread-safe. Can you guys check, please? Thanks a bunch.

fab

1310 Posts

Posted - Sep 05 2012 :  10:10:05  Show Profile  Reply
Hi,
nothing has been changed in Jpeg loading. Jpeg images are loaded in one step, not progressively.
Make sure you don't call Paint/Update inside OnProgress event.

About the thread-safe: it depends what you mean. Of course you cannot access the bitmap while loading is in progress.
Go to Top of Page

Uwe

284 Posts

Posted - Sep 06 2012 :  11:09:56  Show Profile  Reply
Hi Fabrizio,

Never mind, I made a stupid mistake by putting the ImageEnVect1.LockPaint in the wrong place.

Cheers
Uwe
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: