vendredi 18 avril 2014

Cropping image and placing it on UIImageView


Vote count:

0




I have an image and I crop it using this snippet:



CGImageRef imref = CGImageCreateWithImageInRect([newImage CGImage], faceRect);
newSubImage = [UIImage imageWithCGImage:imref];


My problem is when I paste the crop image to my UIImageView the position is change.


I want to place my cropped image where it was when I crop it. I want it to be in exact same position after I crop it.



asked 15 secs ago






Aucun commentaire:

Enregistrer un commentaire