On 15 February 2011 13:10, Robin Talwar <[email protected]> wrote:

> Saving this bitmap and

String path = Environment.getExternalStorageDirectory().toString();
OutputStream fOut = new FileOutputStream( new File(path, "filename.jpg) );
bitmap.compress(Bitmap.CompressFormat.JPEG, 85, fOut);
fOut.flush();
fOut.close();

> Erase button to clear all the canvas so that user can again make signature
> on clear screen.

http://developer.android.com/reference/android/graphics/Canvas.html#drawRGB%28int,%20int,%20int%29

but again: do RTFM first as there are other options you may want to
utilse (i.e. you may want to save as PNG instead of lossy JPEG) or
simply to know whene you will be trying to reinvent the wheel.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to