Because the inSampleSize of the BitmapFactory.Options is an integer some of my bitmaps get "shrinked" too much. inSampleSize should be something around 1,6 but because it is an int it goes up to 2. Is there any way to convert this inSampleSize to a float?
Some code I use for this:
float heightRatio = (float) Math.ceil(bmpFactoryOptions.outHeight / (float) height);
bmpFactoryOptions.inSampleSize = (int) heightRatio;
bitmap = BitmapFactory.decodeFile(file, bmpFactoryOptions);