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

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -