<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage_Buffer/copy(destinationBuffer:pixelSize:flags:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:So13vImage_BufferV10AccelerateE4copy011destinationB09pixelSize5flagsyABz_SiAC01vA0O7OptionsVtKF"
  },
  "title" : "copy(destinationBuffer:pixelSize:flags:)"
}
-->

# copy(destinationBuffer:pixelSize:flags:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)