CGImageCreateWithImageInRectを使うと、CGImageから任意のCGRectの範囲の画像が作れる。CGImageからUIImageを作るときは、imageWithCGImage:scale:orientation:を使い倍率を設定することで、高解像度のUIImageを作ることができる。 - (void)setImage:(UIImage *)image rect:(CGRect)rect { // self は UIImageView [self setImage:nil]; // 画像のクリッピング iPad3 Retina対応 float scale = [[UIScreen mainScreen] scale]; CGRect scaledRect = CGRectMake(rect.origin.x * scale, rect.origin.y * sca