Add the above UIView Category and just use.
Up vote 3 down vote favorite 1 share g+ share fb share tw.
I've been trying to grab still images from the ARDrone in the Free Flight example app that came from the SDK and I can't seem to find a clean way to do it. The SDK and the app are too heavily intertwined for me to grab the Open GL texture. Any ideas?
Iphone ios iphone-sdk-4.0 opengl-es texture link|improve this question edited Jun 26 '11 at 15:04genpfault11.3k4918 asked Jun 26 '11 at 4:04ArtemT665 0% accept rate.
Import #import @interface UIView (Screenshot) - (UIImage *)screenshot; @end #import "UIView+Screenshot. H" @implementation UIView (Screenshot) - (UIImage *)screenshot { UIGraphicsBeginImageContext(self.bounds. Size); UIColor clearColor setFill; UIBezierPath bezierPathWithRect:self.
Bounds fill; CGContextRef ctx = UIGraphicsGetCurrentContext(); self. Layer renderInContext:ctx; UIImage *anImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return anImage; } @end Add the above UIView Category and just use UIImage *image = self. View screenshot.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.