サムネイル画像とかを動的に作るときに使えそう。
UIGraphicsBeginImageContextWithOptions(CGSizeMake(100, 100), NO, 0.0);
[image drawInRect:CGRectMake(0, 0, 100, 100)];
UIImage *thumbnail = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
More than 5 years have passed since last update.
サムネイル画像とかを動的に作るときに使えそう。
UIGraphicsBeginImageContextWithOptions(CGSizeMake(100, 100), NO, 0.0);
[image drawInRect:CGRectMake(0, 0, 100, 100)];
UIImage *thumbnail = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Register as a new user and use Qiita more conveniently