> For the complete documentation index, see [llms.txt](https://interopxyz.gitbook.io/bitmap-plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interopxyz.gitbook.io/bitmap-plus/components/transform/rotate-image.md).

# Rotate Image

Rotate an 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)
