So I'm applying a blur to a bitmap via the code below (a little clunky
perhaps, this is for testing only), and it's accomplishing my goal,
which is to blur a bitmap WITHOUT the annoying fuzzing out and fading
away of the edges. I just want a uniform blur across the whole image.
The tricky part, though, is that I want to TWEEN the blur, while
preserving the generateFilterRect effect of having the blur go edge to
edge evenly. I've looked at all the tween classes but none seem to
allow for this. Does anyone know of a way to either tween an
"applyFilter" for a bitmap, or else accomplish the same effect while
simply blurring a movieclip or sprite?

thanks,

.matt

var bmd:BitmapData = new BitmapData(157,157);
bmd.draw(myRoot.testbitmap);
var bFilter:BlurFilter = new BlurFilter(15.0,15.0,3);
var filterRect:Rectangle = bmd.generateFilterRect(bmd.rect, bFilter);
var bmdFinal:BitmapData = new BitmapData(157, 157, true, 0xFFFFFFFF);
bmdFinal.applyFilter(bmd, bmd.rect, new Point(0, 0), bFilter);
var bm:Bitmap = new Bitmap(bmdFinal);
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to