mantra
07-25-2009, 06:37 AM
Hi i was just wondering if there was a way to scale an image from it's center point rather than from the top left corner.
I have 2 HSliders, one for width and one for height. I also have a checkbox to enable 'maintain aspect ratio'. With aspect ratio turned on obviously you can just use one slider to scale the image up or down. I'm in the process of adding rotation as well, and once i scale the image or rotate it it goes funny as the rotation and scaling are happening from the top left corner.
Can anyone recommend a way to set the scale and rotation positions to the center of the image ?
Thx
I have 2 HSliders, one for width and one for height. I also have a checkbox to enable 'maintain aspect ratio'. With aspect ratio turned on obviously you can just use one slider to scale the image up or down. I'm in the process of adding rotation as well, and once i scale the image or rotate it it goes funny as the rotation and scaling are happening from the top left corner.
Can anyone recommend a way to set the scale and rotation positions to the center of the image ?
Thx