如何合并三维变换图像?

时间:2012-09-18 13:18:43

标签: iphone

  

可能重复:
  How to merge the perspective image(3D Transform)?

如何将3D变换后的图像与背景图像合并?我使用以下代码。

UIGraphicsBeginImageContext(backgroundImageView.frame.size);
[backgroundImageView.layer  renderInContext:UIGraphicsGetCurrentContext()]; //bacgroundImageView here
overlappedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

它的工作正常,但我将3D变换更改为该图像(猫图像enter image description here)它不起作用。请参阅附图。第一张图像是变换图像,第二张图像是合并图像(这是问题)。请帮帮我。我浪费了更多时间来解决这个问题。我希望任何人都能帮助我。提前致谢。

0 个答案:

没有答案