Friday, May 14, 2010

Bitmap.smoothing - how to reduce image distortion

For images placed in library

The trick to avoid the distortion of images used in animations is simply in the settings of one parameter.* In your flash library, if you right click on the image, you will find the option ‘Allow smoothing’.* Once that option checked, Flash will drastically reduce the image distortion during the animation.

For images not placed in library and is externally loaded in runtime

using the property ‘smoothing’ of the Bitmap Class of Actionscript 3.0

the loader is for loading the image, after the loader is added , use this

var image:Bitmap=loader.content as Bitmap;
image.smoothing=true;

No comments:

Post a Comment