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
 FillFromDirectory
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Sep 12 2014 :  05:16:25  Show Profile  Reply
Hello

Both FillFromDirectory commands (when used separately) will load the jpg images into an ImageEnMView1 component.

Scenario 1)
ImageEnMView1.FillFromDirectory(tempCurrentPathAndFile);

Scenario 2)
{ ImageEnMView1.FillFromDirectory(tempCurrentPathAndFile,
-1, // Maximum number of files
False, // Allow unknown formats - default is false
'', // Excluded file extensions
False, // Detect file format
'', // Filter mask limits the fill to the listed file extensions
False, // Include video files
False, // Load on demand
iedtNone, // Default top text
iedtNone, // Default info text
iedtNone, // Default bottom text
False, // Show hidden files - default is false
False); // Show folders - default is false;
}

When ImageEnMView is loaded using scenario 1 and a selected image is saved using "ImageEnView1.IO.SaveToFile" the resulting file is correctly saved. However, when scenario 2 is used, a jpg file is created, but there is no image and no EXIF data in the file.

Does anyone have an answer as to why?

TIA

John

xequte

38182 Posts

Posted - Sep 14 2014 :  22:11:13  Show Profile  Reply
Hi John

What method are you using to assign the image from the ImageEnMView to the ImageEnView? You would be best to load the image directly into the ImageEnView (so you can do fast loading in the ImageEnMView), but if you are doing a straight assignment of the IEBitmap, then ensure you copy the Params data too.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

John

USA
94 Posts

Posted - Sep 17 2014 :  06:44:49  Show Profile  Reply
Nigel

My mistake. I had the ImageEnMView.FillFromDirectory LoadOnDemand property set to False. Once I set this to true the problem resolved.

TIA

John


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