Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

draw an image in a picture

$
0
0

Titanium SDK 3.4.0 for IOS an Android

Hello,

I want to put a logo in the bottom right of a picture and save it. I don't want to show it, just want to take the picture, draw the logo and save.

I know how to save the picture.

module.exports = {
    init: function(){},
    start: function(win){
        Titanium.Media.showCamera({
            success:function(e) {
                if (e.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {
                    var img = e.media;
                    //change the image
                }
            },
            cancel:function() {
            },
            error:function(error) {
            },
            saveToPhotoGallery:true,
            allowEditing:true,
            mediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO]
        });
    }
};
Any ideas?

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>