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
 IEFolderMView1ImageAdd CreateDate=EditDate bug ?

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
klausdoege Posted - Nov 19 2015 : 08:19:06
Hello,
i use follow Procedure:

Procedure TThumbnail_form.IEFolderMView1ImageAdd(Sender: TObject; idx: integer;
const sFilename: string; bFolder, bHiddenFile: boolean; iFileSizeBytes: Int64;
CreateDate, EditDate: TDateTime; var bAllow: boolean);
begin
if fromto_checkbox.Checked then
begin
if (createdate > To_Date.datetime) or
(createdate < From_Date.datetime) then bAllow:=false;

// for testing only
showmessage('Filename: '+ sfilename+ ' Createdate: '+datetimetostr(createdate)+' Editdate: '+datetimetostr(editdate));

end;

I use the above procedure to images between a certain period to show .
Unfortunately Craetedate and editdate here equal .
See Messages.
In the Folder View display , it is Ok .
What is wrong ?
Proberties IEFolderMView:






Thanks for help
Klaus
www.klausdoege.de

4   L A T E S T    R E P L I E S    (Newest First)
klausdoege Posted - Nov 22 2015 : 15:30:41
Hi Bill,
yes i have do that, IO.Paramsfromfile is OK

Klaus
www.klausdoege.de
w2m Posted - Nov 21 2015 : 08:19:54
Instead of using IO.LoadFromFile try IO.ParamsFromFile, then get the EXIF value from IO.Params

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
klausdoege Posted - Nov 20 2015 : 08:11:09
Hi Nigel,
how can i read the exifdate without new load the file
and then check if xxx.IOParams.EXIF_HasEXIFData

Klaus
www.klausdoege.de
xequte Posted - Nov 19 2015 : 16:59:29
Hi Klaus

The discrepency here is that in the ImageAdd event the CreateDate is the file create date, whereas after loading a JPEG CreateDate is set to the EXIF DateTimeOriginal value for greater accuracy.

That should probably be optional...

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com