.Net Image.Save default format

I have been grabbing frames from a video file and saved them using .Net Image.Save(filename). Then what I tried to use the DirectShow GraphEdit utility to render the picture as a media file, it fails to load. Now, GraphEdit is not the most robust application. So I tried to use Media Player Classic and it also fails to load it.

I opened the file in a binary editor to find out that it was saved as a PNG file. Even if you name the file, for example "frame0001.bmp", it will be saved as a PNG. I thought that MS would decide to default to the "goodold" bmp format but it's not the case. I waisted the better part of an afternoon to track down this mysterious behaviour. So I thought I should put a note about this. 




Bookmark it...
Digg!Reddit!Del.icio.us!Google!Facebook!Slashdot!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!
 
< Prev   Next >
Joomla Template by Joomlashack
Joomla Templates by JoomlaShack Joomla Templates by Compass Design