bitmap - Save image with high resolution in android -


I am adding dynamic image and amp; View the view on one captured photo After watching it, my code is shown below to save the photo. Capture photo size is 1.3 MB (Photo taken by 3 MP camera), but the saved photo size is just 50 KB How do I increase the resulting file size to get maximum resolution? photoLayout.setDrawingCacheEnabled (true); Bitmap b = bitmap.creditbetaMap (photoLayout.getDrawingCache ()); PhotoLayout.setDrawingCacheEnabled (wrong); FileOutputStream fos = New FileOutputStream (path); B.compress (compressed form. PNGG, 100, foss); Fos.close ();

The bitmap format will reduce the converted file size in PNG format. See if you have the necessary resolution for your output image. Bitmap format is a compressed format that stores information about each single pixel of an image.

Comments