How merge the perspective of the image on the background image view?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12457047/how-to-merge-the-perspective-image3d-transform">How to merge the perspective image(3D Transform)?</a>  </p>
</blockquote>



<p><img src="http://i.stack.imgur.com/kFVGw.png" alt="enter image description here"></p>

<p>How to merge the 3D transform image to background image. In attached image1 is 3D transform image, after merge its going to image2. Its not perfect. How to merge that two images? Thanks in advance.</p>

<pre><code> UIImage *mergedImage;
    UIGraphicsBeginImageContext(backgroundImageView.frame.size);
    [backgroundImageView.layer  renderInContext:UIGraphicsGetCurrentContext()]; //bacgroundImageView here
    [self resizeOverlappedImage];
    mergedImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
- (void)resizeOverlappedImage
{
    UIImage *overImage;
    UIGraphicsBeginImageContext(rsImageView.frame.size);
    [rsImageView.layer renderInContext:UIGraphicsGetCurrentContext()]; //TopMostImageView here
    overImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
}
</code></pre>

<p>I am using this code.</p>
