Smooth scaling of bitmapData objects
By Thomas HIf scaling bitmapData objects are making your head ache because it looks jagged and all shitty, why don’t you add a BlurFilter before scaling? Works really well for downsampling large bitmaps to really small sizes too. Just remember to add sufficient blur values.
var newSource:BitmapData = new BitmapData(source.width,source.height) newSource.applyFilter(source, source.rect, new Point(), new BlurFilter(scaleRatio,scaleRatio)) source = newSource target.draw(source,new Matrix(scale,0,0,scale,0,0),null,null,null,true)
