Taylor89
V2EX  ›  问与答

GPUImage 库的 GPUImagePicture 中不支持 alpha

  •  
  •   Taylor89 · Apr 20, 2016 · 2125 views
    This topic created in 3849 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
    Taylor89
    OP
    Apr 20, 2016
    1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5124 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 07:41 · PVG 15:41 · LAX 23:41 · JFK 02:41
    ♥ Do have faith in what you're doing.