<!--
{
  "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/premultipliedAlphaBlend(_:topLayer:destination:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO11PixelBufferVAaC14Interleaved8x4VRszrlE23premultipliedAlphaBlend_8topLayer11destinationyAC0H4ModeO_AEy_AGGAMtF"
  },
  "title" : "premultipliedAlphaBlend(_:topLayer:destination:)"
}
-->

# premultipliedAlphaBlend(_:topLayer:destination:)

Performs alpha compositing of two 4-channel interleaved RGBA 8-bit pixel buffers using the specified blend mode to produce a premultiplied result.

```
func premultipliedAlphaBlend(_ blendMode: vImage.BlendMode, topLayer: vImage.PixelBuffer<Format>, destination: vImage.PixelBuffer<Format>)
```

## Parameters

`blendMode`

The blend mode.

`topLayer`

The blend top layer.

`destination`

The destination pixel buffer.

## Discussion

This function treats `self` as the bottom layer and both pixel buffers must have alpha as their last channel.

## See Also

  <doc://com.apple.accelerate/documentation/Accelerate/compositing-images-with-alpha-blending>



---

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)