Hi Chris,
I am taking the phone in portrait mode and when i convert the image to
greyscale and assign it to the UIImageView it rotates it to landscape.
The code im using is really straightforward:
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)
editingInfo{
ImageWrapper *greyScale=Image::createImage(image, image.size.width,
image.size.height);
imageView.image = greyScale.image->toUIImage();
[picker dismissModalViewControllerAnimated:YES];
}
I have uploaded a zip file containing screenshots to the Files section
of this Google Group. The screenshots included are:
centerpreview - The image preview after taking the photo with my
iPhone camera
centergrey - A screenshot of the image after its been assigned to the
UIImageView using the code above. This is with the View mode of the
UIImageView set to Center in the interface builder
scalepreview - The image preview after taking the photo with my iPhone
camera
scalegrey - A screenshot of the image after its been assigned to the
UIImageView using the code above. This is with the View mode of the
UIImageView set to Scale To Fit in the interface builder
I really appreciate your help!
Thanks,
Reza