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
 How do I check whether file is image file.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

adisonx

Thailand
29 Posts

Posted - Dec 17 2014 :  00:47:49  Show Profile  Reply
My task is to get all files in a folder to convert to desire format (such as tif format). It 's ok when all files are images so TImageEnIO do the job well, but if some files are not image files and not support by TImageEnIO how do I check the file before do the conversion process.

Thanks in advance.

xequte

39140 Posts

Posted - Dec 17 2014 :  01:36:43  Show Profile  Reply
Hi

Check IO.Aborting (or result of LoadFromFile). It will be false if loading failed, e.g. due to an incompatible format.


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

adisonx

Thailand
29 Posts

Posted - Dec 21 2014 :  21:18:04  Show Profile  Reply
Thank you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: