[.net] "Image" processing
Hello everyone, long time no post.
Got a quick (hopefully) question. It's not really image processing. I need to process thousands of image files and one of the early steps is to look at the height and width of the image. At this point that is all I need from the file. Right now, my code just loads the file into a Bitmap using
Bitmap.FromFile( string path )
and then queries the height and width. This is much too slow (some of the files are pretty large). Does anyone know a quicker way to get this info from an image file? My google search hasn't given me anything useful yet. Any help is appreciated.
thanks
If you can use Managed DirectX, you can try TextureLoader.GetImageInformationFromFile().
HTH,
Pat.
HTH,
Pat.
A more drastic approach would be implementing your own image reader - it would only need to be able to identify the most common file formats and know how to read the properties you are interested in.
Sites like Wotsit have lots of information about common image file formats.
Good luck and let me know if you need help with that,
Pat.
Sites like Wotsit have lots of information about common image file formats.
Good luck and let me know if you need help with that,
Pat.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement