I got the answer, to save my gesture paint..
Code is:
var filename = "savedPainting1.jpg";
var sigImg = paintView.toImage().media;
var img = Titanium.Filesystem.getFile(Titanium.Filesystem.externalStorageDirectory, filename);
img.write(sigImg);
Question
I am developing android and ios application using Titanium appcelerator, Now i need to draw or paint in my Activity and want to save that as a image.
-I have found this module Ti.paint module link
I been searching and i couldn't find the way to save my painting..
Can anyone enlighten me guys...
Solution
I got the answer, to save my gesture paint..
Code is:
var filename = "savedPainting1.jpg";
var sigImg = paintView.toImage().media;
var img = Titanium.Filesystem.getFile(Titanium.Filesystem.externalStorageDirectory, filename);
img.write(sigImg);
OTHER TIPS