Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Save camera overlay image with photo

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 March 10th 2010 by Jim Nilson
  • camera
  • overlay
1 Comment
  • Jim, did you ever get this figured out? I'm up against the same thing.

    — commented August 9th 2010 by Randy Hall

2 Answers

  • anyone, Bueller? Bueller?

    — answered August 5th 2011 by Brian Dittmer
    permalink
    0 Comments
  • 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 August 12th 2011 by Will Dzierson
    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 August 12th 2011 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 September 13th 2011 by Mutaz Arif
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.