This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
 BUILT-IN MATHEMATICA SYMBOL Tutorials »| See Also »| More About »

ImageRotate

 ImageRotate[image]rotates image counterclockwise by 90°. ImageRotaterotates image to make the top of the image be on the specified side. ImageRotaterotates image to make be on . ImageRotate rotates image counterclockwise by radians. ImageRotategives an image of the specified size.
• ImageRotate yields an Image object with pixel values corresponding to a rotated image.
• By default, ImageRotate automatically chooses the most suitable resampling algorithm. An explicit algorithm can be specified by setting the Resampling option.
• In ImageRotate, possible specifications for size include:
 w width of the output image {w,h} width and height of the output image Automatic smallest rectangle to enclose all of the rotated image All smallest square to accommodate the rotated image for any rotation angle Full use the dimensions of the input image
Rotate an image counterclockwise by 90 degrees:
Rotate an image counterclockwise by 20 degrees:
Turn a photo to the right:
Turn the previous result so that the left side goes to the top:
Pad the result to include the entire rotated image:
Rotate an image counterclockwise by 90 degrees:
 Out[1]=

Rotate an image counterclockwise by 20 degrees:
 Out[1]=

Turn a photo to the right:
 Out[1]=
Turn the previous result so that the left side goes to the top:
 Out[2]=

Pad the result to include the entire rotated image:
 Out[1]=
 Options   (6)
Use a transparent background:
Use a specific color for background:
By default a black background is used:
By default, the rotated image is resampled with the most suitable method:
Rotate an image using a specific resampling algorithm:
With Resampling no interpolation is performed:
New in 7 | Last modified in 8