Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
haspadar

Image quality after scaling

Recommended Posts

After scaling an image it's resolution decreases.

I need to use resize of the image without its resolution and quality decreasing.

How can I leave the resolution the same?

Link to comment
Share on other sites

TransformManager doesn't change the resolution at all. The only way to allow your object to retain more quality is to start out with a much higher resolution image and have it initially scaled down so that when it increases in scale, it still has enough resolution to look good.

Link to comment
Share on other sites

Have you tried adding smoothing? I just found out about this handy little line of code that you apply to a Bitmap instance. It made all images look a lot better when I scaled them up.

 

example -

 

var bmd:BitmapData = new BitmapData(mc.width, mc.height, true, 0x00000000);

bmd.draw(mc);

var bmdCopy:Bitmap = new Bitmap(bmd);

 

bmdCopy.smoothing = true;

 

var holderMC:MovieClip = new MovieClip();

holderMC.addChild(bmdCopy);

manager.addItem(holderMC);

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.
×