I'm reading a jpg file into bitmap. The file I'm reading has dimensions 1600x1600 but the bitmap has dimensions 600x600. Why is it being scaled down? Here is my code:
BitmapFactory.Options options = new BitmapFactory.Options();
options.inScaled = false;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
options.inMutable = true;
b = BitmapFactory.decodeFile(imageFile, options);
Log.d("###", "bitmapWidth: " + b.getWidth());
Log.d("###", "bitmapHeight: " + b.getHeight());
I get the following log:
12-19 10:03:10.551: D/###(4125): bitmapWidth: 600
12-19 10:03:10.551: D/###(4125): bitmapHeight: 600
As you can see I have the inScaled
flag set to false. Why is it being scaled down?
EDIT:
I even tried with inJustDecodeBounds
and I got the same result.