init(composition:colorSpace:)
Creates a renderer object with a composition object and a color space.
Declaration
init!(composition: QCComposition!, colorSpace: CGColorSpace!)Parameters
- composition:
A Qccomposition object. The composition must not contain any consumer patches. That is, the composition can receive data, process it, and produce output values, but it cannot perform any rendering.
- colorSpace:
A Quartz color space object. This must be an RGB color space. Pass
NULLto use the default RGB color space. The color space is used only for the images produced by the output image ports of the composition. For more information on Quartz color spaces, see TP30001066.
Return Value
The initialized QCRenderer object or nil if initialization is not successful.
Discussion
Note that snapshotImage() and createSnapshotImage(ofType:) always returns nil on such QCRenderer instances.