透明的GPUImageView?
我在iOS应用程序中使用GPUImageView。 我希望GPUImageView具有透明背景。 我试过setBackground:[UIColor clearColor]它不起作用。 有任何变通方法吗?
问候
我发现你需要设置这两个来获得透明背景。 两者都没有。
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;