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,
This would only work for an object who's height and width are the same.
Objects like a rectangle on it's side will get wider at a faster rate
than they will get taller. That's where the math kinda runs away from
me (and when fond memories of me doodling in 6th grade math come to
mind).
On
At 2:46 PM -0400 9/20/2004, 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.
A quick and dirty way is to use the width as your key
Ah yes. Now I see what you want. How about this. Pick either one,
say width, and adjust it by (the amount you've adjusted height) times
(width divided by height). In your rectangle laying on its side
example, if it's 100 pixels wide by 50 tall and you want an increase in
10 pixels of
On Mon, 20 Sep 2004, Simon Lord wrote:
I have an object 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
Uber Danka. :)
On Sep 21, 2004, at 1:52 PM, Wilhelm Sanke wrote:
On Mon, 20 Sep 2004, Simon Lord wrote:
I have an object 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.
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