var offsetMatrix:Matrix = new Matrix();
offsetMatrix.translate(toCopy.x, toCopy.y);
var bmd:BitmapData = new BitmapData(toCopy.width, toCopy.height);
bmd.draw(toCopy, offsetMatrix);
bitmap = new Bitmap(bmd);
addChild(bitmap);
var filter:BitmapFilter = new BlurFilter(8, 8, BitmapFilterQuality.HIGH)
bitmap.filters = [filter]
Monday, 1 March 2010
bitmap copy with blur
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment