Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在寻找一种将图像(例如从照片库中抓取的图像)切成许多不同矩形块的方法。有人能指出我正确的方向吗?
CGImageRef topLeftImageRef = CGImageCreateWithImageInRect(originalImage.CGImage, CGRectMake(0,0,originalImage.size.width/2,originalImage.size.height/2)); UIImage *topLeftImage = [UIImage imageWithCGImage:topLeftImageRef];