SkipD said:
Sorry im extra confused today (health has not been good past few years) so im having trouble
It's not a problem--and I'm sorry to read of your troubles!
SkipD said:
Im not sure what u mean with adding the anchor point position.
Essentially, the formulae that I gave you, above, just scale an object “in place”--they don't account for the location of the object.
In order to get the actual position of, say, the right-hand side of the object, it's called for to account for that location--after all, the right-hand side of the object will be located at a different coordinate if the object is at a different location.
In this case, all that's called for, I believe, is to add that location to the value that's calculated using those formulae that I gave.
SkipD said:
Like when i call the function to scale it takes source width,height destination width,height
Ah, I see--you're doing things in a different manner to what I imagined, then! (Which is fair.)
Okay, in that case, do you want the scaling function to instantaneously change the size of the object, or do you intend to use those source- and destination- values to change the size of the object over time?