BitmapData quirk
♥2 |
Line 15 |
Modified 2011-02-03 03:34:08 |
MIT License
archived:2017-03-05 06:28:12
ActionScript3 source code
/**
* Copyright yonatan ( http://wonderfl.net/user/yonatan )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/blpD
*/
package {
import flash.display.*;
import flash.geom.*;
public class FlashTest extends Sprite {
private var bmd:BitmapData = new BitmapData(465, 465, true, 0);
private var bmp:Bitmap = new Bitmap(bmd);
private var mtx:Matrix = new Matrix;
public function FlashTest() {
addChild(bmp);
bmd.fillRect(new Rectangle(0, 0, 200, 200), 0xff123456);
mtx.scale(1.01, 1.01);
bmd.draw(bmd, mtx);
}
}
}