eg. if your original image size is 800x600 and you want it to be 500 x ? :
(pseudo code) //store original sizes originalWidth = myImage._width; originalHeight = myImage._width; //get the ratio finalRatio = originalWidth/500; myImage._width = originalWidth * finalRatio; myImage._height = originalHeight * finalRatio; On 3/26/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
Any examples out there? I've got as far as resizing a user supplied image and am about to work on the ratio remaining fixed. Just thought I'd throw this out there as I think it may be tricky. Ta. Adrian _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com