Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: IPhone camara picture rotation

  1. #1
    Default IPhone camara picture rotation
    Hi all,

    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?

    Thanks, Felipe

  2. #2
    In The multitouch app you can zoom & rotate someone may be able to incorprate that into what your talking about
    Acer 5050
    250 gb harddrive
    2.5 gb of ram
    Mac os 10.5.2


Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts