美文网首页
UIImage合并

UIImage合并

作者: 嘚嘚以嘚嘚 | 来源:发表于2018-02-06 16:22 被阅读0次

    UIGraphicsBeginImageContext(size);//合并后的尺寸

    [image1 drawInRect:CGRectMake(0, 0, image1.size.width, size.height)];

    [image2 drawInRect:CGRectMake(image1.size.width, 0, image2.size.width, size.height)];

    UIImage *togetherImage = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

    相关文章

      网友评论

          本文标题:UIImage合并

          本文链接:https://www.haomeiwen.com/subject/smigzxtx.html