outputPremultiplied
A Boolean value to control how a Core Image context render produces alpha-premultiplied pixels.
Declaration
static let outputPremultiplied: CIContextOptionDiscussion
This option only affects how a context is rendered when using methods where the destination’s alpha mode cannot be determined such as:
/CIContext/render:toBitmap:rowBytes:bounds:format:colorSpace:/CIContext/render:toCVPixelBuffer:/CIContext/render:toIOSurface:bounds:colorSpace:/CIContext/render:toMTLTexture:commandBuffer:bounds:colorSpace:/CIContext/createCGImage:fromRect:
If the value for this option is:
True: The output will produce alpha-premultiplied pixels.
False: The output will produce un-premultiplied pixels.
Not specified: the default behavior True.
This option does not affect how a context is rendered to a CIRenderDestination because that API allows you to set or override the alpha behavior using /CIRenderDestination/alphaMode.