在程序中如何把两张图片合成为一张图片

2023-05-30 综合 29阅读
- (UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 { UIGraphicsBeginImageContext(image1.size); //培轮 Draw image1 [image1 drawInRect:CGRectMake(0, 0, image1.size.width, image1.size.height)]; /态中蠢/ Draw image2 [image2 drawInRect:CGRectMake(0, 0, image2.size.width, image2.size.height)]; UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return resultingImage; } 查看更多帆陪答案>>
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com