码迷,mamicode.com
首页 > 其他好文 > 详细

图片上添加水印图片之后合成

时间:2015-12-04 17:59:31      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:

-(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);
}

图片上添加水印图片之后合成

标签:

原文地址:http://www.cnblogs.com/tian-sun/p/5019874.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!