Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIGraphicsBeginImageContext(CGSizeMake(512.0, 512.0));
- CGContextRef ctx = UIGraphicsGetCurrentContext();
- CGContextSetFillColorWithColor(ctx, [UIColor redColor].CGColor);
- CGContextFillRect(ctx, CGRectMake(0.0, 0.0, 512.0, 512.0));
- UIImage* myImage = UIGraphicsGetImageFromCurrentImageContext();
- UIGraphicsEndImageContext();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement