Hi guys,
The way of mistery is open...
I've processed the UIImage taken from the picker with this method BEFORE apply the GreyScale (above):
Code:
- (UIImage*)resizeImage:(UIImage*)image
{
CGSize size = image.size;
UIGraphicsBeginImageContext( size );
[image drawInRect:CGRectMake(0,0,size.width ,size.height )];
UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
}
:
As you can see there's no resize...scale factor is one...
Now all works and it's perfect...
maybe this code will be useful for someone with the same problem...
I would like to know why I should do this trick to make it work correctly?
Why I must scale an UIImage obtined from the picker controller in order to have the CORRECT alignment and proportion????
any guru could explane this?
Thank you!!