【问题标题】:GPUImagePicture with imageFromCurrentlyProcessedOutput doesn't get UIImage带有 imageFromCurrentlyProcessedOutput 的 GPUImagePicture 没有得到 UIImage
【发布时间】:2012-10-04 21:09:29
【问题描述】:

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

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

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

问题是我需要 UIImage 来保存它,但是当我调用时:

[localImageSource imageFromCurrentlyProcessedOutput]

我什么也得不到。

请帮忙!

【问题讨论】:

    标签: objective-c ios gpuimage


    【解决方案1】:

    用 filter 调用它本身显然可以解决这个问题:

    [filter imageFromCurrentlyProcessedOutput];
    

    感谢brspurri

    【讨论】:

      猜你喜欢
      • 2015-03-23
      • 2018-01-30
      • 1970-01-01
      • 2023-03-08
      • 2022-01-12
      • 1970-01-01
      • 1970-01-01
      • 2017-04-19
      相关资源
      最近更新 更多