---
title: outputFormat
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciimageprocessorkernel/outputformat
---

# outputFormat

Override this class property if you want your processor’s output to be in a specific pixel format.

## Declaration

```swift
class var outputFormat: CIFormat { get }
```

## Discussion

Discussion The format must be one of kCIFormatBGRA8, kCIFormatRGBAh, kCIFormatRGBAf or kCIFormatR8. On iOS 12 and macOS 10.14, the formats kCIFormatRh and kCIFormatRf are also supported. If the outputFormat is 0, then the output will be a supported format that best matches the rendering context’s /CIContext/workingFormat. If a processor returns data in a color space other than the context working color space, then call /CIImage/imageByColorMatchingColorSpaceToWorkingSpace: on the processor output. If a processor returns data as alpha-unpremultiplied RGBA data, then call, /CIImage/imageByPremultiplyingAlpha on the processor output.

## See Also

### Type Properties

- [outputIsOpaque](coreimage/ciimageprocessorkernel/outputisopaque.md)
- [synchronizeInputs](coreimage/ciimageprocessorkernel/synchronizeinputs.md)
