Image sizes

BlitzMax Forums/BlitzMax Beginners Area/Image sizes

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

I'm having a bit of a problem with the funky new animation support in my tilemap editor.

How do I get the dimensions of an image without actually loading it? I can't load the images normally because i get an Unhandled Exception: Unable to create texture error on the larger ones. I need to know the dimensions before I can load the image, but I need to load the image before I can read the dimensions!

Catch 22?

It seems the easiest solution would be to include a text file with every anim containing the image size, but that doesn't seem like a very tidy way of doing it...