Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8545765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:52:05+00:00 2026-06-11T12:52:05+00:00

How to merge these two images(see attached image).I am using the below code. Its

  • 0

enter image description here

How to merge these two images(see attached image).I am using the below code. Its working for ordinary images not for 3D transform images. How to handle this issue. I have searched lot of times still not getting the proper result. Please help me. Thanks in advance.

UIImage *mergedImage;
UIGraphicsBeginImageContext(backgroundImageView.frame.size);
[backgroundImageView.layer  renderInContext:UIGraphicsGetCurrentContext()]; //bacgroundImageView here
mergedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T12:52:06+00:00Added an answer on June 11, 2026 at 12:52 pm

    You could create a CGImageRef that contain the distorted image to put on top, (with the background of that image being 0% alpha) that way you could blend the images using your above code.

    So what you are truly looking for is how to apply a 3D transform to an image. More precisely, as you are looking for “perspective” in you own words, you are looking on how to warp an homography to an image.

    The CoreImage programming guide specify that CIPerspectiveTransform is the way to go, unfortunately for you this is not available on iOS as of iOS 5.1.

    So you are left with a few choices :

    • If you want to display only the result blend and not manipulate it, you can use two UIImageViews on top of each other, the one containing the perspective image being transformed using a cleverly designed CATransform3D

    • If you absolutely need to blend the images, you will need to use another framework such as OpenCV (warpPerspective()is the function you are looking for) or OpenGL ES

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to merge these two object but not totally sure how.. Can you
I am trying to merge two images - a GIF image with a smaller
I use this code to merge two images. Can someone please help me to
I have two mysql tables and i want to merge the results of these
I have two classes that I would like to merge into a composite. These
How do you merge these two rows? SELECT col1, col2, col3, col4 FROM table_a
I have two columns in a table. I need to merge these two columns
I have a plist with two string arrays. I want to merge these two
I need to merge two doubly-linked lists, but not by their values (the lists
I would like to know how to merge these two Javascript ajax scripts. So

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.