我編寫代碼來裁剪圖像,但我得到圖像的其他部分,而不是在給定的矩形。圖像裁剪給圖像的錯誤部分
CGImageRef cr = CGImageCreateWithImageInRect([imageCrop.image CGImage], rectangle.frame);
imageCrop.frame=rectangle.frame;
imageCrop.image = [[[UIImage alloc] initWithCGImage:cr] autorelease];
CGImageRelease(cr);
應該是什麼形象定位? –
@IdreesAshraf我用更多的信息更新了我的答案 – voromax