android - Saving Gestures as bitmap -


i want know whether can save gestures bitmap in android layout. had asked similar question before never got reply

please help...

thanks

we can save gesture bitmap

gestureoverlayview gestureview = (gestureoverlayview) findviewbyid(r.id.gestures);         gestureview.setdrawingcacheenabled(true);         bitmap bm = bitmap.createbitmap(gestureview.getdrawingcache());         file f = new file(environment.getexternalstoragedirectory()                 + file.separator + "signature.png");         f.createnewfile();         fileoutputstream os = new fileoutputstream(f);         os = new fileoutputstream(f);         //compress specified format (png), quality - ignored png, , out stream         bm.compress(bitmap.compressformat.png, 100, os);         os.close(); 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -