V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Taylor89
V2EX  ›  问与答

GPUImage 库的 GPUImagePicture 中不支持 alpha

  •  
  •   Taylor89 · 2016-04-20 00:28:47 +08:00 · 1112 次点击
    这是一个创建于 2935 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用了 GPUImage

    代码如下

    - (void)setupDisplayFiltering;
    {
        UIImage *inputImage = [UIImage imageNamed:@"grossini.png"]; // The WID.jpg example is greater than 2048 pixels tall, so it fails on older devices
        
        sourcePicture = [[GPUImagePicture alloc] initWithImage:inputImage smoothlyScaleOutput:YES];    
        GPUImageView *imageView = (GPUImageView *)self.view;
    
        [sourcePicture addTarget:imageView];
        [sourcePicture processImage];
    }
    
    
    1 条回复    2016-04-20 00:29:32 +08:00
    Taylor89
        1
    Taylor89  
    OP
       2016-04-20 00:29:32 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   752 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1041ms · UTC 20:57 · PVG 04:57 · LAX 13:57 · JFK 16:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.