V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Taylor89
V2EX  ›  问与答

GPUImage 库的 GPUImagePicture 中不支持 alpha

  •  
  •   Taylor89 · Apr 20, 2016 · 1723 views
    This topic created in 3668 days ago, the information mentioned may be changed or developed.

    使用了 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 replies    2016-04-20 00:29:32 +08:00
    Taylor89
        1
    Taylor89  
    OP
       Apr 20, 2016
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   772 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:01 · PVG 06:01 · LAX 15:01 · JFK 18:01
    ♥ Do have faith in what you're doing.