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.
画像を 300*300 にトリミングしたい。その画像から顔をトリミングしたい。
点線の長方形を使用して、必要な領域に応じて移動およびスケーリングできると思います。
これで試すことができます
CGImageRef imageRef = CGImageCreateWithImageInRect([largeImage CGImage], cropRect); [UIImageView setImage:[UIImage imageWithCGImage:imageRef]]; CGImageRelease(imageRef);