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
 Possible Bug in IsKnownFormat

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
w2m Posted - Jul 31 2011 : 07:28:24

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
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Aug 01 2011 : 09:34:40
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).
w2m Posted - Aug 01 2011 : 05:48:27
DCR is also a bitmap for Delphi as well.

William Miller
fab Posted - Aug 01 2011 : 00:22:19
DCR is a Camera RAW format and it is recognized when IEINCLUDERAWFORMATS is defined in ie.inc.