ID:159868
Dec 31 2008, 4:45 pm
|
|
How would I make a proc to return image dimensions? I've tried some things, but none have worked. Any help?
|
Dec 31 2008, 5:03 pm (Edited on Dec 31 2008, 5:14 pm)
|
|
I suppose you could use the icon_states() proc and then do some math to determine the size based on what it returns. It'll return a list of icon states and coordinates as x,y for all the states in the image then you'll have to figure it out based on those. The only problem arises if dimensions aren't in multiples of 32.
|
This was bugging me so I sussed out some code. It's not robust and hardly thoroughly tested, but it's a place to start:
proc/image_dimension(icon/I) |