1
我想合并单个图像中的多个图像,通过使用按钮单击>我的问题是,如果用户在tableview中触摸图像,相应的图像必须与下一页中的主图像合并..我们可以做到这一点吗? iphone图像合并
这是该页面的主要图像! this the the uppercloth
我有固定上布在漫画
我想合并单个图像中的多个图像,通过使用按钮单击>我的问题是,如果用户在tableview中触摸图像,相应的图像必须与下一页中的主图像合并..我们可以做到这一点吗? iphone图像合并
这是该页面的主要图像! this the the uppercloth
我有固定上布在漫画
使用UIGraphicsBeginImageContext,然后调用图像的drawAtPoint方法,然后用UIGraphicsGetImageFromCurrentImageContext得到合并图像。这样的事情(没有检查,只是从内存中写道..语法错误可能..自己纠正..)
UIGraphicsBeginImageContext(yourFirstImage.size);
[yourFirstImage drawAtPoint:CGPointMake(0,0)];
[yourSecondImage drawAtPoint:CGPointMake(0,0)];
UIImage *mergedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
whrere我把这段代码放进去了吗? – 2011-05-08 12:25:22
在你的视图的drawRect .. – Krishnabhadra 2011-05-09 04:08:00
,thnku,另一个疑问,我想在这个视图的子视图中创建按钮,如果我点击子视图中的按钮视图的图像变化是可能的? – 2011-05-09 04:26:03