flatten(channelOrdering:backgroundColor:isPremultiplied:destination:)
Transforms an 32-bit-per-channel RGBA or ARGB buffer to an RGB buffer against an opaque background color.
Declaration
func flatten(channelOrdering: vImage.ChannelOrdering, backgroundColor: Pixel_FFFF, isPremultiplied: Bool, destination: vImage.PixelBuffer<vImage.InterleavedFx3>)Parameters
- channelOrdering:
The channel ordering of the source buffer.
- backgroundColor:
The background color that the function composites against.
- isPremultiplied:
A Boolean values that specifies whether the source image is premultiplied.
- destination:
The destination pixel buffer.