In my application, the bitmap is drawn as if the color were lower. If I upload a background image using the gallery app, it loads just fine and doesn't look very low. The code I use to upload and draw images is simple:
//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);
If nothing in the code tells you what is wrong, I made an image comparing the image that actually looks on a computer or other image viewer and how it looks in the application.
source share