# Transform Layers

## Description

Transform a layer

{% tabs %}
{% tab title="Preview" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FI5T65ebm5NbJKh0J7suN%2FComponent-LayerXform.png?alt=media\&token=9b241b1c-0b7d-4f88-934d-1277ba3b5ec1)
{% endtab %}

{% tab title="Location" %}
**Name** | Transform Layers

**Nickname** | XfrmLyr

**Tab** | Bitmap

**Panel** | Layers

**Division** | 2
{% endtab %}

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

**V** | **Translation Vector** (*Vector*) | Translation vector (x,y only)&#x20;

**A** | **Angle** (*Integer*) | Rotation angle of the Image in the layer

**W** | **Width** (*Integer*) | A new pixel width of the image

**H** | **Height** (*Integer*) | A new pixel height of the image

<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;">) | Fitting modes for resize</mark>
{% 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 %}

### Fitting Modes

<details>

<summary>Fitting Modes Enumerable</summary>

* Use Width = 0
* Use Height = 1
* Fill = 2
* Uniform = 3
* Uniform Fill = 4

</details>

## Usage
