Save the image made by user in fingerPaint api demos in android

前端 未结 3 459
情歌与酒
情歌与酒 2020-12-18 17:33

Hey guys I am trying to build a signature task application . In which the user will create the signature on touch and that bitmap should be saved in the phone. I have create

3条回答
  •  清歌不尽
    2020-12-18 18:16

    You've got a Bitmap object in your fingerPaint class. Instantiate a FileOutputStream to the location you'd like to save to, and call mBitmap.compress method with the appropriate options and your output stream. Remember to close your stream.

提交回复
热议问题