---
description: Rotate an Image
---

# Rotate Image

## Description

Rotate an Image

{% tabs %}
{% tab title="Preview" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FzhBreRIO3OJ7EIgcNSMp%2FComponent-ImageRotate.png?alt=media\&token=3b374e7f-986f-499a-ae6f-03dc9d0185fd)
{% endtab %}

{% tab title="Location" %}
**Name** | Rotate Image

**Nickname** | RotateImg

**Tab** | Bitmap

**Panel** | Transform

**Division** | 1
{% endtab %}

{% tab title="Inputs" %}
**I** | **Image** (_B+ Image, Bitmap_) | A Bitmap Plus Image or Bitmap

<mark style="color:blue;">**M**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">|</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Mode**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">(</mark>_<mark style="color:blue;">Integer</mark>_<mark style="color:blue;">) | Sampling Mode</mark>

**A** | **Angle** (_Number_) | Rotation Angle

**K** | **Keep Original** (_Bool_) | If true, keeps the original image size

**C** | **Color** (_Colour_) | The background replacement color
{% endtab %}

{% tab title="Ouputs" %}
**I** | **Image** (_B+ Image_) | A Bitmap Plus Image
{% endtab %}

{% tab title="Mode" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FeV1ulrSGqAXPXGlo6uDD%2Fimage.png?alt=media\&token=fb42f272-523b-4276-8531-df4f25a0a55c)

**Save Image** | Opens a file save dialog to save a raster file of the current image.

**Copy Image to Clipboard** | Copies the image to the clipboard (no alpha)
{% endtab %}
{% endtabs %}

### Sampling Mode

<details>

<summary>Sampling Mode Enumerable</summary>

* Bicubic = 0
* Bilinear = 1
* Nearest = 2

</details>

## Usage

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2F8tyw9MSlftWEwukeNzlx%2Fimage.png?alt=media\&token=5e3c307d-cbe0-48af-a0d8-5ab33496a63c)
