0

我想合并两个图像(检查屏幕截图 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;
}
4

1 回答 1

2

要拍摄 3D 变换视图的屏幕截图,您需要将 3D 变换视图转换为仿射变换,然后拍摄屏幕截图

于 2013-09-27T06:08:43.217 回答