# sm.challenge.takePicture

Takes a picture of the challenge level with a custom resolution.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
sm.challenge.takePicture( width, height, rotation )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.challenge.md#takepicture)

**Availability:** Server only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `width` | integer | Preview width. |
| `height` | integer | Preview height. |
| `rotation` | integer | Rotation step. |
