我想合并两个图像(检查屏幕截图 1),并更改为单个图像。但我无法合并 3D 转换图像。
如果我合并图像意味着它会变成原始大小(检查屏幕截图 2)。
如何合并图像或为 3D 转换图像视图截取屏幕截图。
我使用以下代码合并图像,
-(UIImage *)captureView:(UIImageView *)imageView
{
//Merge the two images.
UIGraphicsBeginImageContext(backgroundImageView.frame.size);
CGContextRef ctx = UIGraphicsGetCurrentContext();
[imageView.layer renderInContext:ctx];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return newImage;
}