Created
October 28, 2015 18:00
-
-
Save dsowsy/6ea849a5995090880775 to your computer and use it in GitHub Desktop.
GPUImage Still image filter example in Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Posted this example because I couldn't get the example from the GPUImage page working directly. | |
| let stillImageSource = GPUImagePicture() | |
| let stillImageFilter = GPUImageSepiaFilter() | |
| stillImageSource.addTarget(stillImageFilter) | |
| stillImageFilter.useNextFrameForImageCapture() | |
| let destImage = stillImageFilter.imageByFilteringImage(srcImage) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment