alphaComposite(_:topLayer:destination:)
Performs alpha compositing of two 4-channel interleaved ARGB 32-bit pixel buffers using the specified composite mode.
Declaration
func alphaComposite(_ compositeMode: vImage.CompositeMode<Pixel_F>, topLayer: vImage.PixelBuffer<Format>, destination: vImage.PixelBuffer<Format>)Parameters
- compositeMode:
The composite mode.
- topLayer:
The composite 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 first channel.