# Sandbox.Bitmap.ToTexture

```csharp
Texture ToTexture(bool mips = True)
```

Try to create a texture from this bitmap

### Parameters

- `mips` (`bool`), default `True`

### Returns

`Texture`

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
