LoginSignup
8
8

More than 5 years have passed since last update.

UIImageを動的に作る

Last updated at Posted at 2014-02-21

サムネイル画像とかを動的に作るときに使えそう。

UIGraphicsBeginImageContextWithOptions(CGSizeMake(100, 100), NO, 0.0);
[image drawInRect:CGRectMake(0, 0, 100, 100)];
UIImage *thumbnail = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
8
8
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8