I'm trying to draw an image on surface view, but it seems not to have the same quality as an original image. I'm doing it the following way:
mBackgroundBitmap = BitmapFactory.decodeResource(mResources, R.drawable.background);
canvas.drawBitmap(mBackgroundBitmap , null, new Rect(0, 0, surfaceSize.mWidth, surfaceSize.mHeight), null);
Where R.drawable.background
is a BMP image
This is how it looks in the default Android viewer:
Any ideas how to do the same quality as on the first picture?