The Smoothing is a nice feature for removing jaggies from images that have been scaled either up or down.
The goal is to provide an image component thats quick and easy to use, and takes care of turning the smoothing property on after the image has loaded. This is helpful if you have an image that you want to look the best it can at different sizes through zooming in and out.
Please look the following codes:
mx:Image id="imageComp" source="favoritesBtnDown.png" x="326.5" y="156" complete="smoothing(event)"
public function smoothing(e:Event):void
{
var bitmapAsst:Bitmap = e.target.content as Bitmap ;
bitmapAsst.smoothing = true ;
}
The image smoothing process is done in Image Component's complete event.
No comments:
Post a Comment