---
title: "init(planarBuffers:pixelFormat:)"
framework: accelerate
role: symbol
role_heading: Initializer
path: "accelerate/vimage/pixelbuffer/init(planarbuffers:pixelformat:)"
---

# init(planarBuffers:pixelFormat:)

Returns an initialized buffer by copying the specified planar buffers.

## Declaration

```swift
init(planarBuffers: [vImage.PixelBuffer<Format.PlanarPixelFormat>], pixelFormat: Format.Type = Format.self)
```

## Parameters

- `planarBuffers`: An array that contains the source planar buffers.
- `pixelFormat`: The pixel format of the initialized buffer.

## Discussion

Discussion note: The number of planar buffers must equal the Format.planeCount. All planar buffers must be the same size.
