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
 please document TIEFileFormatInfo.ReadFunction
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

davenovo

USA
26 Posts

Posted - Jan 25 2014 :  15:15:45  Show Profile  Reply
If you could include some documentation in the topic for TIEFileFormatInfo.ReadFunction, that would be a big help.

Specifics:
1. What does Preview parameter mean. Based on debugging, it seems like if someone only wants to load the IOParamVals, Preview is true. That is not very obvious. Am I missing another useage of it?

2. How to signal that the load failed. Based on traversing your source code, it seems I have TProgressRec.Aborting^:=True since you stick a pointer to the TImageEnIO Aborting field in the TProgressRec. What benefit do you get by this unobvious approach, aside from confusing users? Having a var ImageLoadedOk:boolean parameter, or 3 lines of documentation would have saved me quite a bit of time.

xequte

39061 Posts

Posted - Jan 28 2014 :  00:43:00  Show Profile  Reply
Hi Dave

I will improve the help documentation for the next release.

1. When Preview is true, ImageEn is only seeking to fill IOParams, not load the image (i.e. you can skip filling of Bitmap as it will be ignored. It has no other purpose.

2. Yes, that is correct. Set Progress.Aborting^ := True ;

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: