Transparent GPUImageView?

雨燕双飞 提交于 2019-12-22 04:46:17

问题


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?

Regards


回答1:


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];



回答2:


...Did you try the method from the GPUImageView header?

- (void)setBackgroundColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent alpha:(GLfloat)alphaComponent;


来源:https://stackoverflow.com/questions/13814772/transparent-gpuimageview

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!