This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

ImageRotate

ImageRotate[image]
rotates image counterclockwise by 90°.
ImageRotate
rotates image to make the top of the image be on the specified side.
ImageRotate
rotates image to make be on .
ImageRotate
rotates image counterclockwise by radians.
ImageRotate
gives 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:
wwidth of the output image
{w,h}width and height of the output image
Automaticsmallest rectangle to enclose all of the rotated image
Allsmallest square to accommodate the rotated image for any rotation angle
Fulluse 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:
In[1]:=
Click for copyable input
Out[1]=
 
Rotate an image counterclockwise by 20 degrees:
In[1]:=
Click for copyable input
Out[1]=
 
Turn a photo to the right:
In[1]:=
Click for copyable input
Out[1]=
Turn the previous result so that the left side goes to the top:
In[2]:=
Click for copyable input
Out[2]=
 
Pad the result to include the entire rotated image:
In[1]:=
Click for copyable input
Out[1]=
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