---
title: "copy(to:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage/pixelbuffer/copy(to:)"
---

# copy(to:)

Copies the contents of the pixel buffer to another pixel buffer.

## Declaration

```swift
func copy(to destinationBuffer: vImage.PixelBuffer<Format>)
```

## Parameters

- `destinationBuffer`: The destination pixel buffer.

## See Also

### Pixel buffer methods

- [copy(to:cvImageFormat:cgImageFormat:)](accelerate/vimage/pixelbuffer/copy(to:cvimageformat:cgimageformat:).md)
- [makeCGImage(cgImageFormat:)](accelerate/vimage/pixelbuffer/makecgimage(cgimageformat:).md)
- [withCVPixelBuffer(readOnly:body:)](accelerate/vimage/pixelbuffer/withcvpixelbuffer(readonly:body:).md)
