【发布时间】:2012-09-09 12:55:48
【问题描述】:
如何合并这两个图像(见附图)。我正在使用下面的代码。它适用于普通图像,不适用于 3D 变换图像。如何处理这个问题。我已经搜索了很多次仍然没有得到正确的结果。请帮我。提前致谢。
UIImage *mergedImage;
UIGraphicsBeginImageContext(backgroundImageView.frame.size);
[backgroundImageView.layer renderInContext:UIGraphicsGetCurrentContext()]; //bacgroundImageView here
mergedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
【问题讨论】:
-
我看到您在这里使用了我的 GPUImage 框架(这些是我随框架提供的示例图像)。为什么不使用混合过滤器,结合变换过滤器,而不是使用 UIViews?
标签: iphone uiimage core-image cgimage