<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/PixelBuffer/init(planarBuffers:pixelFormat:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVA2A013MultiplePlaneC6FormatRzrlE13planarBuffers05pixelG0AEy_xGSayAEy_06PlanarcG0QzGG_xmtcfc"
  },
  "title" : "init(planarBuffers:pixelFormat:)"
}
-->

# init(planarBuffers:pixelFormat:)

Returns an initialized buffer by copying the specified planar buffers.

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

> Note:
> The number of planar buffers must equal the `Format.planeCount`. All planar buffers must be the same size.

---

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)