public override void ViewDidLoad() { base.ViewDidLoad(); stillCamera = new GPUImageStillCamera(); stillCamera.OutputImageOrientation = InterfaceOrientation; pixellateFilter = new GPUImagePixellateFilter(); sepiaFilter = new GPUImageSepiaFilter(); stillCamera.AddTarget(pixellateFilter); pixellateFilter.AddTarget(sepiaFilter); sepiaFilter.AddTarget(imageView); stillCamera.StartCameraCapture(); }
public override void ViewDidLoad () { base.ViewDidLoad (); stillCamera = new GPUImageStillCamera (); stillCamera.OutputImageOrientation = InterfaceOrientation; filter1 = GPUImageFilter.FromFragmentShaderFile ("Shader1"); filter2 = GPUImageFilter.FromFragmentShaderFile ("Shader2"); filter3 = new GPUImageSepiaFilter (); stillCamera.AddTarget (topLeftImageView); stillCamera.AddTarget (filter1); filter1.AddTarget (topRightImageView); stillCamera.AddTarget (filter2); filter2.AddTarget (bottomLeftImageView); stillCamera.AddTarget (filter3); filter3.AddTarget (bottomRightImageView); stillCamera.StartCameraCapture (); }
public override void ViewDidLoad() { base.ViewDidLoad(); stillCamera = new GPUImageStillCamera(); stillCamera.OutputImageOrientation = InterfaceOrientation; filter1 = GPUImageFilter.FromFragmentShaderFile("Shader1"); filter2 = GPUImageFilter.FromFragmentShaderFile("Shader2"); filter3 = new GPUImageSepiaFilter(); stillCamera.AddTarget(topLeftImageView); stillCamera.AddTarget(filter1); filter1.AddTarget(topRightImageView); stillCamera.AddTarget(filter2); filter2.AddTarget(bottomLeftImageView); stillCamera.AddTarget(filter3); filter3.AddTarget(bottomRightImageView); stillCamera.StartCameraCapture(); }