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
 FillFromDirectory

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
John Posted - Sep 12 2014 : 05:16:25
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
2   L A T E S T    R E P L I E S    (Newest First)
John Posted - Sep 17 2014 : 06:44:49
Nigel

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

TIA

John


xequte Posted - Sep 14 2014 : 22:11:13
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