Jump to content


Imageloader: image rendering issue

Recommended Posts



When i resize any image which is in the autoFitArea it goes blur. Let me know when we resize any image AutoFitArea redraw the bitmap image or it normally resize the image. Is there any option to redraw image pixel to control the image distortion or any other suggestion to solve this problem.



Link to comment
Share on other sites

If your image is scaling larger than its natural size, yes some blurring or pixelization is going to take place.

If you set smoothing to true, it will look better.


ImageLoader smoothes by default, but you can set it to false and see if that result is better for you.


var img:ImageLoader = new ImageLoader("someImage.jpg", {smoothing:false});

Link to comment
Share on other sites

Yes i am scaling but smaller then its actual size and its goes blur. And i have already set smoothing true. my image size is 102 x 68 and when i try to resize it to 50X50 proportionally it goes blur. is there any other way to get better output please suggest me. :( And please let me know one thing that AutoFitArea are re-render the image when resize or normally scale the image.

Link to comment
Share on other sites

AutoFitArea doesn't do any rendering whatsoever - all it does is set the width/height and x/y of the attached DisplayObjects - Flash does the rendering.


If you're going smaller, it shouldn't really blur things.


Are you making sure that the AutoFitArea is positioned on whole pixels? If not, I'd definitely recommend that. You could also try setting cacheAsBitmap to true on your object which should snap things to whole pixels - that can help it render in a more crisp fashion.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.