Search code examples
iosobjective-cgpuimage

GPUImageview disappear after capture it


I try to capture GPUImageView by using this link

but after I capture it GPUImageview is disappear, but if it is UIImageView it just working fine.


Solution

  • I answered you in your cross-posted question on GitHub, but the reason for this is the line in the above-linked documentation which states:

    Note that, CALayer/-renderInContext: captures only your UIKit and Quartz drawing. It does not capture OpenGL ES or video content.

    GPUImageView presents its content using OpenGL ES, so you can't capture it using -renderInContext:. You'll either need to extract your filter's image and manually composite it with your underlying view, or perform the compositing within GPUImage itself using a blend filter.