Proportional scaling

Ray Horsley ray at linkitonline.com
Tue Sep 21 15:22:22 EDT 2004


Simon,

Wouldn't this be just a matter of making sure you increase or decrease 
the object's width the same number of pixels its height is increased or 
decreased for every change in size that's made, or am I not 
understanding your question?

Ray Horsley
Developer, LinkIt! Software

On Monday, September 20, 2004, at 02:46  PM, Simon Lord wrote:

> I have an abject on my card which can be scaled at runtime, the next 
> step is to get this object to scale proportionally using it's current 
> H x W as the aspect ratio when the shiftKey is down.
>
> So if the object is currently shaped like a rectangle, when I hold the 
> shiftKey down and continue dragging the object will maintain the same 
> aspect ratio at the time I held the shiftKey down.
>
> Unfortunately I'm at a lose at to where to even start the math on this.
>
> Sincerely,
> Simon
>
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard
>



More information about the metacard mailing list