Jump to content
  • Advertisement
Sign in to follow this  
lucinpub

[.net] "Image" processing

This topic is 4702 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
yeah, thats what I was thinking, but I'm hoping there is some api call out there so I dont have to bother with all that. If it comes to that, Ill be able to handle it fine, I just have so much other code to write I don't want to add too much more :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!