带有imageFromCurrentlyProcessedOutput的GPUImagePicture无法获取UIImage [英] GPUImagePicture with imageFromCurrentlyProcessedOutput doesn't get UIImage

查看:66
本文介绍了带有imageFromCurrentlyProcessedOutput的GPUImagePicture无法获取UIImage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GPUImage处理本地照片,正在使用它进行初始化:

I'm using GPUImage for processing a local photo, I'm using this to initialize:

localImageSource = [[GPUImagePicture alloc] initWithImage:selectedImage];

然后我添加过滤器,然后我可以在屏幕上看到它.

Then I'm adding the filters and I can see it on the screen.

问题是我需要UIImage来保存它,但是当我打电话时:

Problem is that I need UIImage to save it but when I call:

[localImageSource imageFromCurrentlyProcessedOutput]

我什么也没得到.

请帮助!

推荐答案

使用过滤器本身调用显然可以解决此问题:

Calling that with the filter itself apparently solve this problem:

[filter imageFromCurrentlyProcessedOutput];

归功于brspurri

Credits to brspurri

这篇关于带有imageFromCurrentlyProcessedOutput的GPUImagePicture无法获取UIImage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆