PDA

View Full Version : Automatic image size detection?



masonwheeler
14-07-2007, 12:17 AM
Is it possible to load an image of arbitrary size into a TAsphyreImages and have it figure out what size the image is automatically? I'm trying to implement background images that can be of any size up to a certain maximum, but I can't seem to get Asphyre to figure out the size without me hard-coding it into the routines, which defeats the purpose.

Anyone know how to do this?

Mason

masonwheeler
14-07-2007, 12:20 AM
(Using the AddFromFile method.)
Grr... why can't I edit posts? :(

Mason

WILL
14-07-2007, 12:25 AM
You have to wait about 30secs-1min to make another post or edit your post. It's a phpBB hack countermeasure which prevents flooding of the forums. So just give it a little longer next time or just try again if your too fast, it should work by then. :)