Rotates an image about its principal point. Usually the principal point is at the center of the image.
- The image to rotate.
- Rotation angle in degrees. Positive angle means clockwise rotation clockwise.
- The size of the output image.
- The color to use for undefined pixels in the output.
true, improve the visual quality of the output by interpolating non-exact values from neighboring pixels. If
false, round pixel coordinates to the nearest integer. Notice that interpolation is a significantly slower operation than rounding.
- Rotated image.
Method which determines the size of the output image.