<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIContextOption/outputPremultiplied",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:@kCIContextOutputPremultiplied"
  },
  "title" : "outputPremultiplied"
}
-->

# outputPremultiplied

A Boolean value to control how a Core Image context render produces alpha-premultiplied pixels.

```
static let outputPremultiplied: CIContextOption
```

## Discussion

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`](/documentation/CoreImage/CIRenderDestination) because
that API allows you to set or override the alpha behavior using `/CIRenderDestination/alphaMode`.

---

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)