< Previous | Contents | Next >

Summary

The Transform method can be used to change the scale, angle and position of an image. The results of the transform will be copied into the image provided as the first argument. If the first argument is set to nil, the method will return a new Image object containing the results.

The defaults for XF_XOffset and XF_YOffset are zero, so if you don’t want to do translation you still need to specify 0.5 for each one if you don’t want your image to end up in the bottom left corner.