Viewing paste PICSCALE
made on Fri, 15 Nov 2013 00:08:59 -0500
Sane-itized version, click to copy:
&pic.scale #388=[null([setq(i,[mul([u(#388/pic.w,%0)],%1)])][setq(j,[mul([u(#388/pic.h,%0)],%1)])][setq(w,[u(#388/pic.w,%0)])][setq(h,[u(#388/pic.h,%0)])][fbcreate(A,%qw,%qh)][fbwrite(A,0,0,[showpicture(%0)])][fbcreate(B,%qi,%qj)][fbscaleto(A,B,0,0,%qw,%qh,0,0,%qi,%qj,%2)])][fbdump(B)][null([fbdestroy(A)][fbdestroy(B)])]

Enter a target attribute, object reference and the mushcode.


[null(
 [setq(i,[mul([u(#388/pic.w,%0)],%1)])]
 [setq(j,[mul([u(#388/pic.h,%0)],%1)])]
 [setq(w,[u(#388/pic.w,%0)])]
 [setq(h,[u(#388/pic.h,%0)])]
 [fbcreate(A,%qw,%qh)]
 [fbwrite(A,0,0,[showpicture(%0)])]
 [fbcreate(B,%qi,%qj)]
 [fbscaleto(A,B,0,0,%qw,%qh,0,0,%qi,%qj,%2)]
)]
[fbdump(B)]
[null(
 [fbdestroy(A)]
 [fbdestroy(B)]
)]

save as: imprettify (attempt to format for readibility):
Found this useful? Try MUSHcode Repeater
written by orcs.biz