是否可以选择将CGImage
添加到CGImageDestination
内的特定索引?
我们尝试使用CGImageDestinationAddImage
,但它会按增量顺序添加图片。我们正在创建一些昂贵的CGImages
,我们需要将它们添加到目标内的多个索引中。我们考虑将它们添加到所有需要的"索引"立刻拯救了娱乐。
generator.generateCGImagesAsynchronously(forTimes: <BigArrayOfTimes>, completionHandler: { (requestedTime, expensiveCgImage, actualTime, result, error) in
CGImageDestinationAddImage(destination, expensiveCgImage, frameProperties as CFDictionary)
// How can I add the CGImage in more known indexes, before releasing the CGImage?
})