图片上添加水印图片之后合成
2015-12-04 17:06
435 查看
-(void) FeSlideFilterView:(FeSlideFilterView *)sender didTapDoneButtonAtIndex:(NSInteger)index
{
[self dismissViewControllerAnimated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarHidden:NO];
UIGraphicsBeginImageContext(self.filterImage.size);
[self.filterImage drawInRect:CGRectMake(0, 0, self.filterImage.size.width, self.filterImage.size.height)];
//四个参数为水印图片的位置
[signImage.image drawInRect:CGRectMake(self.currentPoint.x, self.currentPoint.y, signImage.image.size.width, signImage.image.size.height)];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[deletate imageBeautifulDone:resultingImage];
}];
NSLog(@"did tap at index = %ld",(long)index);
}
{
[self dismissViewControllerAnimated:YES completion:^{
[[UIApplication sharedApplication] setStatusBarHidden:NO];
UIGraphicsBeginImageContext(self.filterImage.size);
[self.filterImage drawInRect:CGRectMake(0, 0, self.filterImage.size.width, self.filterImage.size.height)];
//四个参数为水印图片的位置
[signImage.image drawInRect:CGRectMake(self.currentPoint.x, self.currentPoint.y, signImage.image.size.width, signImage.image.size.height)];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[deletate imageBeautifulDone:resultingImage];
}];
NSLog(@"did tap at index = %ld",(long)index);
}
相关文章推荐
- Linux文件管理上
- Android应用使用SyncAdapter传输数据
- 短信开发的PDU格式
- 前端性能
- 数据结构实验之查找一:二叉排序树
- kettle学习笔记
- php内联式写法
- ngnix+openssl+pcre+php
- WPF编程学习——窗口
- view添加虚线边框
- view添加虚线边框
- 《疯狂JAVA讲义》——多态
- Centos6.5下安装ElasticSearch
- django 设置session过期时间
- Java 对象拷贝方式
- Chrome渲染分析之Timeline工具的使用
- 取得汉语拼音首个字母
- 添加一条边框
- android AudioRecord 与 AudioTrack的录音加回放的使用
- /etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc和~/.bash_logout