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
 IEExtToFileFormat
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wesleybobato

Brazil
367 Posts

Posted - Aug 05 2014 :  06:44:18  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - Aug 05 2014 :  11:23:36  Show Profile  Reply
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
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Aug 05 2014 :  11:33:09  Show Profile  Reply
Thanks William I was not using ExtractFileExt ().

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

you can test please.

Thanks again.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 05 2014 :  12:07:00  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 05 2014 :  12:24:29  Show Profile  Reply
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
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Aug 05 2014 :  12:31:59  Show Profile  Reply
Thank You.
Go to Top of Page

xequte

38604 Posts

Posted - Aug 05 2014 :  19:20:39  Show Profile  Reply
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
Go to Top of Page

wesleybobato

Brazil
367 Posts

Posted - Aug 05 2014 :  20:01:06  Show Profile  Reply
thank you nigel for you attention
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: