ID:114217
 
BYOND Version:485
Operating System:Windows Vista Home Basic 64-bit
Web Browser:Chrome 12.0.742.91
Applies to:DM Language
Status: Unverified

Thus far we've been unable to verify or reproduce this bug. Or, it has been observed but it cannot be triggered with a reliable test case. You can help us out by editing your report or adding a comment with more information.
Descriptive Problem Summary:

I'm trying to scale an image to 100x100 and draw on it and save it. When I load the saved image its size is 128x128 and there is nothing drawn on it.

If I do "new" instead of "new('blank.dmi')" it will corrupt the image making it unreadable. leaving the first icon as new will work. Regardless of how I set empty_icon the outcome is still 128x128.

Code Snippet (if applicable) to Reproduce Problem:
mob/verb/test()
var/icon/emtpy_icon = new
//emtpy_icon.Scale(100, 100)
var/icon/i = new('blank.dmi')
i.Scale(100, 100)
i.DrawBox(rgb(0,255,0), 1, 1, 100, 120)
emtpy_icon.Insert(i, "zlevel[z]")
src << ftp(emtpy_icon,"test.dmi")


Expected Results:
A 100x100 image that has been drawn on.

Actual Results:
A 128x128 image that hasn't been drawn on.

Workarounds:
None that I know of.
I got the expected results when testing this snippet in 485.
I believe the issue you were seeing was cleared up in 486 as there was an issue related to Scale(), so please retest in a newer version.