Products & Services
• Mobile Apps
• Services
Solutions
• Engineering, R&D
• Education
• Web & Software
• Finance, Statistics & Business Analysis
• Sciences
• Trends
Support & Learning
• Guided Learning
Company
• Work with Us
• Initiatives
•
BUILT-IN WOLFRAM LANGUAGE SYMBOL

# ImageRotate

ImageRotate[image]
rotates image by 90° about its center in the - plane.

ImageRotate[image,θ]

ImageRotate[image,{θ,w}]
rotates a 3D image around the 3D vector w.

ImageRotate[image,,size]
gives an image of the specified size.

## Details and OptionsDetails and Options

• ImageRotate[image,] rotates image about its center.
• For 2D images, ImageRotate[image,side] rotates image to make the top of the image be on the specified side. ImageRotate[image,side1->side2] rotates image to make be on . Possible side specifications are: Top, Bottom, Left, Right.
• ImageRotate[image,side] is equivalent to ImageRotate[image,Top->side].
• In ImageRotate[image,side,size], possible specifications for size include:
•  width crop to width {width,height} crop to {width,depth,height} crop a 3D image to 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 "MaxAreaCropping" crop to include only input image pixels while maximizing area "SameRatioCropping" crop to include only input image pixels while preserving ratios
• The following options are supported:
•  Background 0 background color to use Masking All region of interest to be rotated Padding 0 padding of the original image Resampling Automatic resampling method
• Masking option can be one of the following:

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Rotate an image counterclockwise by 90°:

 Out[1]=

Rotate an image counterclockwise by 20°:

 Out[1]=

Rotate a 3D image in the - plane:

 Out[1]=