# Editor.Pixmap.FromTexture

```csharp
static Pixmap FromTexture(Texture texture, bool withAlpha = True)
```

Create a pixmap from a texture.

### Parameters

- `texture` (`Texture`)
- `withAlpha` (`bool`), default `True`

### Returns

`Pixmap`

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
