ios - GPUImagePicture with GPUImageView target? -
i'm trying send output of gpuimagepicture
gpuimageview
,
this more or less code:
gpuimageview *backgroundimageview = [[gpuimageview alloc] initwithframe:[[uiscreen mainscreen] bounds]]; uiimage *image = [uiimage imagenamed:@"photo"]; //the image not nil gpuimagepicture *imageinput = [[gpuimagepicture alloc] initwithimage:image]; [imageinput addtarget:backgroundimageview]; [self.view addsubview:backgroundimageview];
the problem backgroundimageview doesn't seem rendering image... going on?
after you've set filter (or display) chain, need
[imageinput processimage];
to propagate image down filter chain , display.
Comments
Post a Comment