Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.


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


Copyright 1999 - 2012