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
 IEExtToFileFormat

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
wesleybobato Posted - Aug 05 2014 : 06:44:18
Nigel Hello Good Morning

This IEExtToFileFormat Function, returns a wrong value for some extensions

for example. PNG and MPG, returns ioUnknown

you can check this please

Thank you friend.
7   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Aug 05 2014 : 20:01:06
thank you nigel for you attention
xequte Posted - Aug 05 2014 : 19:20:39
Hi

ImageEn does not treat MPEG and WMV files as "native" formats as they are supported via DirectShow, and thus are handled differently.

However for v5.1.2 IEExtToFileFormat will correctly return ioWMV and ioMPEG.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
wesleybobato Posted - Aug 05 2014 : 12:31:59
Thank You.
w2m Posted - Aug 05 2014 : 12:24:29
Your WMV file returns 0 as well.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
w2m Posted - Aug 05 2014 : 12:07:00
Your mpg file returns 0 or ioUnknown with
IEExtToFileFormat(ExtractFileExt(AFilename));

TIOFileType = integer;

const
// types for TIOFileType
ioUnknown = 0;
ioTIFF = 1;
ioGIF = 2;
ioJPEG = 3;
ioPCX = 4;
ioBMP = 5;
ioICO = 6;
ioCUR = 7;
ioPNG = 8;
ioWMF = 9;
ioEMF = 10;
ioTGA = 11;
ioPXM = 12;
ioJP2 = 13;
ioJ2K = 14;
ioAVI = 15;
ioWBMP = 16;
ioPS = 17;
ioPDF = 18;
ioDCX = 19;
ioRAW = 20;
ioBMPRAW = 21;
ioWMV = 22;
ioMPEG = 23;
ioPSD = 24;
ioIEV = 25;
ioLYR = 26;
ioALL = 27;
ioDICOM = 28;
ioHDP = 29;
ioRAS = 30; // sun RAS (supported by ievision)
ioRawDLLPlugIn = 4096;
ioOtherDLLPlugIns = ioRawDLLPlugIn + 1;
ioMiscDLLPlugIns = 8192;
ioUSER = 10000;

There is no *.mpg value. I would have thought it would return 23 or ioMPEG for *.mpg but it returns ioUnknown.


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
wesleybobato Posted - Aug 05 2014 : 11:33:09
Thanks William I was not using ExtractFileExt ().

but for files with extensão.MPG properly does not return.

you can test please.

Thanks again.
w2m Posted - Aug 05 2014 : 11:23:36
Wesley,

I just tested IEExtToFileFormat and the correct file format is returned for png.
iFileType := IEExtToFileFormat(ExtractFileExt(AFilename));


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development