Taylor89
V2EX  ›  问与答

GPUImage 库的 GPUImagePicture 中不支持 alpha

  •  
  •   Taylor89 · Apr 20, 2016 · 1813 views
    This topic created in 3716 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   ·   5493 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 301ms · UTC 07:40 · PVG 15:40 · LAX 00:40 · JFK 03:40
    ♥ Do have faith in what you're doing.