2

我目前正在寻找一种将图像(例如从照片库中抓取的图像)切成许多不同矩形块的方法。有人能指出我正确的方向吗?

4

1 回答 1

5
CGImageRef topLeftImageRef = CGImageCreateWithImageInRect(originalImage.CGImage, CGRectMake(0,0,originalImage.size.width/2,originalImage.size.height/2));

UIImage *topLeftImage = [UIImage imageWithCGImage:topLeftImageRef];
于 2012-07-10T05:52:15.123 回答