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...
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...