# Editor.Pixmap.UpdateFromPixels

## Overload 1

```csharp
bool UpdateFromPixels(System.ReadOnlySpan<byte> data, int width, int height, ImageFormat format = 12)
```

### Parameters

- `data` (`System.ReadOnlySpan<byte>`)
- `width` (`int`)
- `height` (`int`)
- `format` (`ImageFormat`), default `12`

### Returns

`bool`

## Overload 2

```csharp
bool UpdateFromPixels(Bitmap bitmap)
```

Copy from a bitmap

### Parameters

- `bitmap` (`Bitmap`)

### Returns

`bool`

## Overload 3

```csharp
bool UpdateFromPixels(System.ReadOnlySpan<byte> data, Vector2 size, ImageFormat format = 12)
```

### Parameters

- `data` (`System.ReadOnlySpan<byte>`)
- `size` (`Vector2`)
- `format` (`ImageFormat`), default `12`

### Returns

`bool`

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
