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
 please document TIEFileFormatInfo.ReadFunction

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
davenovo Posted - Jan 25 2014 : 15:15:45
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.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 28 2014 : 00:43:00
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