I am dynamically adding Image & Text views to a captured photo. Below is my code to save the photo after adding views to it. Captured photo size is 1.3MB (photo is taken by 3MP camera) but saved photo size is just 50KB. How would I increase the resultant file size to get max resolution?
photoLayout.setDrawingCacheEnabled(true);
Bitmap b = Bitmap.createBitmap(photoLayout.getDrawingCache());
photoLayout.setDrawingCacheEnabled(false);
FileOutputStream fos = new FileOutputStream(path);
b.compress(CompressFormat.PNG, 100, fos);
fos.close();