Hi!
I'm not familiar with the GL stuff but i had a chance to do screenshots very easily with a code found on this forum:
Code:
UIGraphicsBeginImageContext(self.frame.size);
[self.window.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
My question is, how can I render the drawings of the GLPaint example without the background, just the stroke.
I implemented the code above in the touchEnded method in PaintingView and it works fine, but only renders the background with the segmented bar.
Any ideas please?
Edit: I tried various layers in the red marked code
Edit 2: sry. had no idea whats happening in the first post. Now I have. Thank you for this great example.