I am trying to scale DOWN a high resolution .png bitmap on my SurfaceView canvas like so:
Bitmap player = BitmapFactory.decodeResource(getResources(), R.drawable.player);
Paint paint;
paint.setAntiAlias(true);
paint.setDither(true);
paint.setFilterBitmap(true);
paint.setFlags(Paint.ANTI_ALIAS_FLAG);
//then in onDraw:
canvas.drawBitmap(player, null, frame, paint);
The problem is that the antialiasing works perfectly when I use a View, but it fails to work when I use a SurfaceView, and the quality looks horrible. I've tried everything. Some guy even posted this question 3 years ago on various sites (even here) and there was no resolution. Does anyone have any ideas?
Here is the original question the guy posted: Drawing scaled bitmaps on a SurfaceView -- no antialiasing