Save camera overlay image with photo

You must Login before you can answer or comment on any questions.

Has anyone figured out how to use the camera image overlay, but have the overlay image saved as a part of the photo, saved in the gallery?

Example, having a logo in the lower corner on top of any photos shot.

— asked 3 years ago by Jim Nilson
1 Comment
  • Jim, did you ever get this figured out? I'm up against the same thing.

    — commented 3 years ago by Randy Hall

2 Answers

You can try hiding all other screen elements and just taking a screenshot. Really big hack, obvi.

Titanium.Media.takeScreenshot(function(event)
    {
        var image = event.media; 
        Titanium.Media.saveToPhotoGallery(image);
 
    });

— answered 2 years ago by Will Dzierson
answer permalink
2 Comments
  • One of the problems with this -- and with trying to save the overlay in general -- is you are effectively reducing the resolution of the camera from 5 mega-pixel (1936x2592) to the screen resolution.

    — commented 2 years ago by Doug Handy

  • I tried to take a screenshot of the camera, and the screenshot itself was successfully taken. Except that the image from the camera is not shown. Instead I get a black screen for it. (I get everything else shown in the window)

    I tried extactly your code, and different methods too. which all worked fine and take a screenshot but with out the camera screen itself.

    my understanding is that screenshots are suppose to take a screenshot of anything "visible" in the window including the camera. any ideas why it won't appear? thanks

    — commented 2 years ago by Mutaz Arif

Your Answer

Think you can help? Login to answer this question!