---
title: "copy(destinationBuffer:pixelSize:flags:)"
framework: accelerate
role: symbol
role_heading: Instance Method
path: "accelerate/vimage_buffer/copy(destinationbuffer:pixelsize:flags:)"
---

# copy(destinationBuffer:pixelSize:flags:)

Copies the contents of a vImage buffer to the specified destination buffer.

## Declaration

```swift
func copy(destinationBuffer: inout vImage_Buffer, pixelSize: Int, flags options: vImage.Options = .noFlags) throws
```

## Parameters

- `destinationBuffer`: The destination buffer.
- `pixelSize`: The number of bytes for one pixel.
- `options`: The options to use when performing the operation.
