透明的GPUImageView? [英] Transparent GPUImageView?

查看:247
本文介绍了透明的GPUImageView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS应用程序中使用GPUImageView。我希望GPUImageView具有透明背景。
我试过setBackground:[UIColor clearColor]
它不起作用。
任何解决方法?

I am using a GPUImageView inside my iOS application. I want that the GPUImageView have a transparent background. I tried setBackground:[UIColor clearColor] It does not work. Any workarounds?

问候

推荐答案

我找到了你需要设置这两个来获得透明背景。两者都没有。

I found you need to set both of these to get a transparent background. Neither works alone.

strengthPreviewImageView.backgroundColor = [UIColor clearColor];
[strengthPreviewImageView setBackgroundColorRed:0 green:0 blue:0 alpha:0];

这篇关于透明的GPUImageView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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