[英]Transparent GPUImageView?
I am using a GPUImageView inside my iOS application. 我在iOS应用程序中使用GPUImageView。 I want that the GPUImageView have a transparent background.
我希望GPUImageView具有透明背景。 I tried setBackground:[UIColor clearColor] It does not work.
我试过setBackground:[UIColor clearColor]它不起作用。 Any workarounds?
任何解决方法?
Regards 问候
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标头中的方法?
- (void)setBackgroundColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent alpha:(GLfloat)alphaComponent;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.