Is there a way to know a picture's width and height without opening it first and relying on the Width and Height methods???
for instance I m planning on loading a serie of tiles, stored in one single picture... I know my tiles are 32*32 but I don t know how many tiles there are in my picture... Basically I load the picture, get its width and height properties, calculate then the number of tiles this represent (widht*height/32/32), and I then reload my picture using LoadAnimImage... thus I load my picture twice, which is NOT nice if my tiles collection gets a bit big...
well, don t try to find a solution to the example above, this is just an example... there are many other cases for which I'd need to know a picture's width and height without loading it, so I just want to know if it's doable.
thanks in advance :)
for instance I m planning on loading a serie of tiles, stored in one single picture... I know my tiles are 32*32 but I don t know how many tiles there are in my picture... Basically I load the picture, get its width and height properties, calculate then the number of tiles this represent (widht*height/32/32), and I then reload my picture using LoadAnimImage... thus I load my picture twice, which is NOT nice if my tiles collection gets a bit big...
well, don t try to find a solution to the example above, this is just an example... there are many other cases for which I'd need to know a picture's width and height without loading it, so I just want to know if it's doable.
thanks in advance :)