Combining two images together and saving

Hello,

I need to add a logo onto an image that I capture with the camera and save it again. Is it true that I can only do this by displaying the image on the screen by scaling it, add the image on top where I need and then save again by capturing the screen? I have no problem with this but then the image is much smaller in size.

Does the new graphics version have anything better? I even thought of passing the image to my server, adding the logo there and then retrieving it back to the app. I hate to do that though.

So what is my best answer for doing this process?

Thanks for the help!!

Warren

Hi Warren,

Graphics 2.0 has some fill effects that should work better for this… for example, the ability to fill one image/vector with another. Check out these tutorials in particular:

http://www.coronalabs.com/blog/2013/10/24/tutorial-fills-and-strokes-in-graphics-2-0/

http://www.coronalabs.com/blog/2013/11/07/tutorial-repeating-fills-in-graphics-2-0/

Brent

Thanks Brent! The second tutorial showed how to repeat images in a newRect. So can you create a newRect larger than the screen size and save it somehow? Or can this be done with a container? I just did not see in these tutorials about resaving an image with it’s original size.

Warren

Hi Warren,

Not sure I understand your intent… you want to capture and save a region much larger than the screen? I thought you were asking about how to “super-impose” one image on another…

I want to take a picture with the camera and add a watermark image on it but keep the camera picture the same size at the end. Does that make sense?

The pictures taken with the camera are must larger in resolution than the screen. I don’t want to lose that.

So does anyone know if this is possible even with the new graphics? Can I combine two images hat are larger than the screen and save them? Before this could only be done with the Capture or CaptureBounds call. Just wondering if anything with the new graphics offers a new option.

Thanks

Hi Warren,

Graphics 2.0 has some fill effects that should work better for this… for example, the ability to fill one image/vector with another. Check out these tutorials in particular:

http://www.coronalabs.com/blog/2013/10/24/tutorial-fills-and-strokes-in-graphics-2-0/

http://www.coronalabs.com/blog/2013/11/07/tutorial-repeating-fills-in-graphics-2-0/

Brent

Thanks Brent! The second tutorial showed how to repeat images in a newRect. So can you create a newRect larger than the screen size and save it somehow? Or can this be done with a container? I just did not see in these tutorials about resaving an image with it’s original size.

Warren

Hi Warren,

Not sure I understand your intent… you want to capture and save a region much larger than the screen? I thought you were asking about how to “super-impose” one image on another…

I want to take a picture with the camera and add a watermark image on it but keep the camera picture the same size at the end. Does that make sense?

The pictures taken with the camera are must larger in resolution than the screen. I don’t want to lose that.

So does anyone know if this is possible even with the new graphics? Can I combine two images hat are larger than the screen and save them? Before this could only be done with the Capture or CaptureBounds call. Just wondering if anything with the new graphics offers a new option.

Thanks