2 Replies Latest reply on Apr 16, 2009 4:48 AM by Inderjit

    Best method for resizing bitmaps

    gvbrown49686
      I'm looking for a good method to resize bitmap images to fit within the constraints of a container object whose size will change based on the browser window dimensions, etc. Basically, it needs to scale to fit.

      I'm using the following for resizing by height. "largeImage is a bitmap object.

      ratio = largeImage.height/newheight;
      largeImage.height = newheight;
      largeImage.width = largeImage.width/ratio;

      The problem is, the resulting images look a bit jagged and not really the quality I was hoping for.

      Is there a better way to accomplish this in as3?