Drawing scaled bitmaps on a SurfaceView — no antialiasing
问题 I'm sorry if this topic has been brought before, but all my searches on the web and google groups did not help me. I'm currently developing a little game with the Android SDK, and use hi-res bitmaps that I resize accordingly to match the device's resolution (letting the system do it for me is not "crisp" enough). I use a SurfaceView, on which I paint in one pass a canvas filling the whole surface. The paint uses setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN)) to allow masking.