如何将两个或多个 CIImage 组合成另一个。我尝试使用 ciContext.drawImage。我如何从中获得 CGImage ?我所理解的是,我正在写一个我应该能够从中获取图像的上下文。请让我知道我是否理解有任何错误。
let eaglContext = EAGLContext(API: .OpenGLES2)
let ciContext = CIContext(EAGLContext: eaglContext)
ciContext.drawImage(firstCIImage, inRect: firstRect, fromRect: secondRect)
ciContext.drawImage(secondCIImage, inRect: secondRect, fromRect: secondRect)