Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: IPhone camara picture rotation
02-01-2008, 10:15 AM #1IPhone camara picture rotation
I have a question in relation to the IPhone camera. Following the directions from the OReilly Rought Cut Iphone book I successfully take pictures with the camera. The callback method for that looks like
-(void)cameraController: (id)sender tookPicture: (UIImage*)picture withPreview: (UIImage*)preview jpegData: (NSData*)jpeg imageProperties: (NSDictionary *)exif
What I use now is the jpegData. The problem is that the jpeg picture is not properly rotated. So I guess I need to read the orientation
int orientation = [ UIHardware deviceOrientation: YES ];
and rotate the picture. There is code arround to rotate an UIImage. But can you rotate the jpg? Or create a new jpeg from the rotated UIImage?
02-01-2008, 01:52 PM #2
In The multitouch app you can zoom & rotate someone may be able to incorprate that into what your talking aboutAcer 5050
250 gb harddrive
2.5 gb of ram
Mac os 10.5.2