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
 Possible Bug in IsKnownFormat
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Jul 31 2011 :  07:28:24  Show Profile  Reply

I never noticed it before but version 4 IsKnownFormat returns true for dcr files:
AIsKnownFormat := IsKnownFormat( 'c:\images\test.dcr');


This may be a bug?

William Miller

fab

1310 Posts

Posted - Aug 01 2011 :  00:22:19  Show Profile  Reply
DCR is a Camera RAW format and it is recognized when IEINCLUDERAWFORMATS is defined in ie.inc.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 01 2011 :  05:48:27  Show Profile  Reply
DCR is also a bitmap for Delphi as well.

William Miller
Go to Top of Page

fab

1310 Posts

Posted - Aug 01 2011 :  09:34:40  Show Profile  Reply
It is possible to know if a DCR is a Delphi resource or Camera RAW using FindFileFormat function (defined in imageenio): it reads the file header to know the actual file format.
For example for Delphi DCR FindFileFormat returns 0 (ioUnknown), while for Camera RAW it returns 20 (ioRAW).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: