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

klausdoege

Germany
389 Posts

Posted - Feb 17 2015 :  02:17:08  Show Profile  Reply
Hello,

I use the following function, and everything works.
ImageEnMView1.FillFromDirectory(verz , -1, false, '', false, '', false, true, iedtFileCreateDateTime, iedtImageDimensions, iedtFilename);

Now I would like but the text from ImagenMview1.imagetoptext[x] in a string output.
with createdate:=ImageEnMView1.ImageTopText[x].Caption;

Unfortunately, I only get this result: creatdate = $IEM_FileCreateDateTime$.
I can in the display the date but see as text '05.02....

What can I do, i need this
Example: createdate = '05.02.2015 12:23:45'



Klaus
www.klausdoege.de

w2m

USA
1990 Posts

Posted - Feb 17 2015 :  07:59:12  Show Profile  Reply
iFilename := xxx
iexHelperFunctions.GetFileDetails(iFilename, iFileSize, iCreationDate,
 iModifiedDate);
ImageEnMView1.MIO.Params[i].FileName := iFilename;
ImageEnMView1.ImageTopText[i].Caption := JustName(iFilename) + '  ' + FormatDateTime('mmmm d, yyyy', iModifiedDate);
ImageEnMView1.Update;


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38611 Posts

Posted - Feb 17 2015 :  13:33:00  Show Profile  Reply
Hi

Yes, ImageTopText[x].Caption only returns the text that should be displayed, which may be a field such as $IEM_FileCreateDateTime$.

You can access the file fields via properties such as ImageEditDate[x]:

http://www.imageen.com/help/TImageEnMView.ImageEditDate.html

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

klausdoege

Germany
389 Posts

Posted - Feb 17 2015 :  14:56:30  Show Profile  Reply
Hi,
ThumbnailTopText shows 01.04.2014 but imagecreatedate shows 20.12.2014 and 27.09.2014 ImageEditDate shows.
And the helperfunction iCreationDate Show 28.02.2015 ?
How is this to be understood.
The correct ExifCreateDate is 01.04.2014

Klaus
www.klausdoege.de
Go to Top of Page

xequte

38611 Posts

Posted - Feb 17 2015 :  19:20:12  Show Profile  Reply
Hi Klaus

When the image has valid EXIF data, ImageEn will use EXIF_DateTimeOriginal2 in place of the File Create Date.



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

klausdoege

Germany
389 Posts

Posted - Feb 22 2015 :  02:56:05  Show Profile  Reply
Hello Nigel,

yes this help me ,but the problem is after ImageEnMView1.FillFromDirectory(verz , -1, false, '',..);
you must wait a while until the data in ImageenmView are filled.
But I find no way to retrieve it.
onFinishWork does not really work by me?

Klaus
www.klausdoege.de
Go to Top of Page

w2m

USA
1990 Posts

Posted - Feb 22 2015 :  07:22:34  Show Profile  Reply
Try setting the 8th parameter LoadOnDemand to False. If True (Default), images are only loaded as they are displayed (i.e. not until they are scrolled into view). Set to false to load all images immediately.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: