title: Android bitmap quality issues
body: <p>In my app, the bitmap is drawn as if the color is some lower quality type. If i load up the background image using the gallery app, it loads just fine and does not look like it's super low quality. The code i am using to load and draw my images is simple:</p>
  
  <pre><code>//Code for initializing the Bitmap
  Bitmap bitmap = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.none), (int) (canvas.getWidth() * compression), (int) (canvas.getHeight() * compression), true);
  //...
  //Code for drawing this Bitmap
  canvas.drawBitmap(bitmap, null, new RectF(0, 0, canvas.getWidth(), canvas.getHeight()), null);
  </code></pre>
  
  <p>If nothing in the code tells you what is wrong, i made an image comparing what the image actually looks like on a computer or other image viewer, and what it looks like in the app.
  <img src="https://i.stack.imgur.com/BTMln.png" alt="Top image is the app on the phone, bottom image is what the background image actually looks like. Notice the lines on the top image. What is up with that?"></p>