Results 1 to 4 of 4

Thread: Resize image inside movie clip proportionally without losing quality Actionscript 3.

  1. #1

    Resize image inside movie clip proportionally without losing quality Actionscript 3.

    Hey y'all, I've made a slide show and I've been successful so far. However, I'd like to add some thumbnails right below the original image (original size).

    Here are some specifications of the thumbnails:

    Size: 50 x 50 px.

    The image sources of the thumbnails and the original image are the same. Therefore, I'd like to resize only the movie clips for the thumbnails because the actual image file dimensions won't be changed.

    I tried simply setting the width and height of the movie clip to 50 but it lost quality and you get jagged lines in the image.

    Does anyone know a good algorithm to resize an image inside a movie clip proportionally and without losing quality?

    Btw, I'm using an XML files to store the images so you have to include the Loaders and stuff, what I really need to know is how to resize images without losing quality.

    Sorry, I just wanted to be detailed, .

  2. #2
    after you load it you need to duplicate it with bitmapdata, and use the PixelSnapping to AUTO also.

  3. #3
    You have any links?

  4. #4
    Ver: dont you think somebody will write it for you, do you?
    If you really need smaller bitmap you can copy pixels from your "bitmapData"

    var thumBMD:BitmapData = new BitmapData(bitmapData.width>>>1,bitmapData.height> >>1);
    for (var y:uint = 0; y<(bitmapData.height>>>1); y++)
    {
    for (var x:uint = 0; x<(bitmapData.width>>>1); x++)
    {
    thumBMD.setPixel(x,y,bitmapData.getPixel(x<<1,y<<1 ));
    }
    }

    and add light blur filter

    but simpler way is to share same Bitmap data for thumbnails with big version and just set size for scale in thumbnails and set "myBitmap.smoothing" to true

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012