For an Image object named myImage use the following syntax:
myImage.SetRotation(45,true,2.0)
Note:In this example, if myImage.SetRotation were called more than once, myImage would remain at 45%.