Flex Scale Image to Max Dimension

Posted on Mon 11 January 2010 in Development • Tagged with As3, Flash, Flex, Image, Scaling

Recently had a problem where I needed to display images as large as possible within given bounds. So I made a handy little function that computes the scaling needed so that the image, if it is larger than any of the bounds, is scaled so that its largest dimension becomes ...


Continue reading