Android, Java: Improve quality of Bitmap with getDrawingCache() -
i have dialog
, convert bitmap
. want send sharing intent:
bitmap cs = null; v1.setdrawingcacheenabled(true); v1.builddrawingcache(true); cs = bitmap.createbitmap(v1.getdrawingcache()); canvas canvas = new canvas(cs); v1.draw(canvas); canvas.save(); v1.setdrawingcacheenabled(false); string path = images.media.insertimage(getcontext().getcontentresolver(), cs, "myimage", null); uri file = uri.parse(path); intent sharingintent = new intent(intent.action_send); sharingintent.settype("image/png"); sharingintent.putextra(intent.extra_stream, file); getcontext().startactivity(intent.createchooser(sharingintent,"share image using"));
v1
parent of textview
in dialog (v1
want send). if send bitmap has bad quality. how can improve that?
Comments
Post a Comment