> 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/layers/set-layer.md).

# Set Layer

## Description

Applies a layer to an image

{% tabs %}
{% tab title="Preview" %}
![](/files/V7y7Gen4yhZmSMsb8Ddq)
{% endtab %}

{% tab title="Location" %}
**Name** | Set Layer

**Nickname** | SetLyr

**Tab** | Bitmap

**Panel** | Layers

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

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

<mark style="color:blue;">**B**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">|</mark> <mark style="color:blue;"></mark><mark style="color:blue;">**Blend Mode**</mark> <mark style="color:blue;"></mark><mark style="color:blue;">(</mark>*<mark style="color:blue;">Integer</mark>*<mark style="color:blue;">) | The transparency blend mode.</mark> [<mark style="color:blue;">See Below</mark>](#undefined)

**O** | **Opacity** (*Number*) | An opacity value \[0-1]

**M** | **Mask** (*B+ Image, Bitmap*) | A Bitmap Plus Image or Bitmap for an opacity mask
{% endtab %}

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

{% tab title="Mode" %}
![](/files/S9AJm2ah8I4pcmsLkijU)

**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 %}

### Blend Modes

<details>

<summary>Blend Mode Enumerable</summary>

* Normal = 0
* Dissolve = 1
* Multiply = 2
* Screen = 3
* Overlay = 4
* Darken = 5
* Lighten = 6
* Color Dodge = 7
* Color Burn = 8
* Linear Dodge = 9
* Linear Burn = 10
* Lighter Color = 11
* Darker Color = 12
* Hard Light = 13
* Soft Light = 14
* Linear Light = 16
* Pin Light = 17
* Difference = 19
* Exclusion = 20
* Color = 23
* Luminosity = 24

</details>

## Usage

### Blend Mode Samples

![Color](/files/Rqcjfn8oeVn8pY1NGUDe) ![Color Burn](/files/BQBaAd7Zbez7NvuyTqLX) ![Color Dodge](/files/pYHAMTNPUlrIk7MR1PnI)

![Darken](/files/xzWDOIzCI1ZmlZI0bxiw) ![Darker Color](/files/5DOzCBQM9sXRhGQt3tVw) ![Difference](/files/mkBGSdvpDbxHMSzbfnQj)

![Dissolve](/files/ge1TPy19WMkrB0VEOxAi) ![Exclusion](/files/qL9v0XnSx5uP8hw03Cxb) ![Hard Light](/files/bciiLGdC2PvFJqgDs2Us)

![Lighten](/files/46FRoZDqaERwFZRkRiFN) ![Lighter Color](/files/chOMwFxQJt3Qemqsm35Q) ![Normal](/files/vhSKQr1p3zZ63qV2mY2G)

![Linear Burn](/files/sE5fn9kzMWskAMySsAcI) ![Linear Dodge](/files/D2XzYqDCHlGIwrAVcalc) ![Linear Light](/files/m63NvBRblyaeqivgiWGf)

![Luminocity](/files/EJjy7In5abdfgJyzJET8) ![Multiply](/files/mYZQPhxSwuArHyHd8ijk) ![Soft Light](/files/UGFag8PitLueU6vFyY7O)

![Overlay](/files/9DvH8AmvwbECOzYUxWxm) ![Pin Light](/files/hDaiO4v5wFEeM0pjFmJc) ![Screen](/files/ErWWd4lN4XDC4kHF6YsK)
