# Editor.Pixmap.Scroll

## Overload 1

```csharp
void Scroll(int x, int y, Rect r)
```

Duplicate a sub-rectangle of the image at re-draw it at given coordinates.

### Parameters

- `x` (`int`): Position to re-draw the duplicated image at on the X axis, from the left edge.
- `y` (`int`): Position to re-draw the duplicated image at on the Y axis, from the top edge.
- `r` (`Rect`): The area on the image to duplicate.

## Overload 2

```csharp
void Scroll(int x, int y)
```

Duplicate the entire image and re-draw it at given coordinates.

### Parameters

- `x` (`int`): Position to re-draw the duplicated image at on the X axis, from the left edge.
- `y` (`int`): Position to re-draw the duplicated image at on the Y axis, from the top edge.

Declared in [Editor.Pixmap](/api/Editor.Pixmap).
Assembly: `Sandbox.Tools`.
