var/icon/I=new('icon.dmi',"regular")
I.Crop(1,1,8,8)
f_copy(I,"States/regular.png")
The resulting file is still 32x32, is there anyway to make the file 8x8?
ID:156956
Jun 24 2010, 3:38 pm (Edited on Jun 24 2010, 3:43 pm)
|
|
var/icon/I=new('icon.dmi',"regular") The resulting file is still 32x32, is there anyway to make the file 8x8? |
In response to Leur
|
|
Its 8x8, but padded up to 32x32, I need it to be strictly 8x8.
|
In response to Tubutas
|
|
In response to Leur
|
|
What version of byond do you have? Mine is 470.1075, Im running windows 7...
Yeah, I just ran your exact code with your exact icon files, and it still padded it upto 32x32. |
In response to Tubutas
|
|
470.1035 Windows XP Pro (Maybe it's a 7 bug....if you report it make sure to include the offset stuff, that could get annoying 8,8,16,16 returning a 9x9 file.)
|
Gave me a png file of size 8x8.
(Using Crop(8,8) gave me a file of size 9x9 due to the 0 offset.)
I don't see why it wouldn't work for you. (Maybe it's a bug?)