标签:
//拼图 UIImage * image=[UIImage imageNamed:@"ann-bg.png"]; // 开启新的图形上下文 284 53 UIGraphicsBeginImageContext(CGSizeMake(300, 60)); // 绘制图片 for (NSInteger i=0; i<10; i++) { for (NSInteger j=0; j<2; j++) { [image drawInRect:CGRectMake(30*i, 30*j, 30, 30)]; } } // 取得上下文中的图片 UIImage *imageFull = UIGraphicsGetImageFromCurrentImageContext(); // 结束上下文 UIGraphicsEndImageContext(); self.imageViewBC.image=imageFull;
标签:
原文地址:http://www.cnblogs.com/jingdizhiwa/p/5580068.html