Search code examples
androidimage-processingbitmapcropbitmapfactory

Process more than 3MP image in android


I want to process(crop) image having resolution with more than 3MP.

Can anybody help to resolve this issue without using BitmapFactory.Options.inSampleSize because when i used that option during loading the image in Bitmap it decreases the Pixel Value.


Solution

  • You can used Bitmap.createBitmap(source, x, y, width,height); if not getting OOM, Otherwise you can used inSampleSize or you can refer to this post