Taylor89
V2EX  ›  问与答

GPUImage 库的 GPUImagePicture 中不支持 alpha

  •  
  •   Taylor89 · Apr 20, 2016 · 1770 views
    This topic created in 3696 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   ·   4444 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 05:33 · PVG 13:33 · LAX 22:33 · JFK 01:33
    ♥ Do have faith in what you're doing.