title: Android: BitmapFactory.Options.inSampleSize to float?
body: <p>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?</p>
  
  <p>Some code I use for this:</p>
  
  <pre><code>    float heightRatio = (float) Math.ceil(bmpFactoryOptions.outHeight / (float) height);
      bmpFactoryOptions.inSampleSize = (int) heightRatio;
      bitmap = BitmapFactory.decodeFile(file, bmpFactoryOptions);
  </code></pre>