Yup, sorry for being vague.

It's the maintaining of the ratio while the user resizes that I'm after.

A user uploads an image, I load this image into a container and force it to
fit into a maximum and minimum width and height. Within this container the
user can resize the image without expanding out of the container and all the
time maintaining the original ratio.

The resizing will be done by dragging an anchor point like this:

http://www.adrianlynch.co.uk/temp/resizer.gif

I have it working but it allows the image to be resized anyway the user
chooses. I also need to make the anchor stick to the bottom right hand
corner of the image.

I think I will work this out eventually but I wanted to see if there was
anything out there already that I could glean some ideas from.

Thanks.

Adrian

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Danny
Kodicek
Sent: 26 March 2007 14:03
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Image resizer that maintains ratio


 > 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.

How are they resizing? Which bit is tricky? Maintaining an aspect ratio
isn't too hard - you're just losing a degree of freedom from the user input.


Danny

_______________________________________________
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

Reply via email to