# Build Bitmap

## Description

Build a bitmap from a width, height, and list of colors

{% tabs %}
{% tab title="Preview" %}
![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FwHGJkOiE2vRMXRaYf0dt%2FComponent-BuildBitmap.png?alt=media\&token=9b35ab28-fe6f-486e-9e7f-da2f0d9993b8)
{% endtab %}

{% tab title="Location" %}
**Name** | Build Bitmap

**Nickname** | BuildBmp

**Tab** | Bitmap

**Panel** | Create

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

{% tab title="Inputs" %}
**W** | **Width** (*Integer*) | The width of the new bitmap

**H** | **Height** (*Integer*) | The height of the new bitmap

**C** | **Colors** (*Colour*) | The list of colors corresponding to the pixels. If the number of colors is less than the total pixel count, the color pattern will be repeated.
{% 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 %}

## Usage

A single color can be used to create a solid color image

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FsVyi4kvjnbtRNnr9Dbhy%2Fimage.png?alt=media\&token=e33f8c9b-de3b-49eb-9d89-ea3fc28a7387)

A list of colors shorter than the total pixel count will be repeated

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FrjHxCNPUmvieFvhdDPU2%2Fimage.png?alt=media\&token=ad37c840-dcb6-49d7-9f98-a3b0cb579cc7)

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FwJ4e4j2DXWCV5DxsVJv0%2Fimage.png?alt=media\&token=7a65d1d2-187c-49c6-aa2b-e72715a7346b)

A color can be assigned to each pixel

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FGHmoQDWLVu4AZPW4p3st%2Fimage.png?alt=media\&token=b398185e-f1a3-48ed-9068-85d166b0a8c0)

![](https://3118158252-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhT7C2oduVfvz0FwKt3nj%2Fuploads%2FhbGBmlv69vMgDxqASNL9%2Fimage.png?alt=media\&token=a0e0ad90-2461-4e7a-ad1f-48cdc57eecf2)
