Maintaining Image quality when creating scaled bitmap in android
问题 I have an image of dimension 960x800 and I am trying to make it fill the screen. The way I have been currently doing it is by loading the full 960x800 bitmap and using source and destination Rect objects. So far example, my destination rectangle is 480x320 (the dimensions of my screen) and the source rectangle will be 960x800. background = BitmapFactory.decodeResource(getResources(), R.drawable.background, null); destRect = new Rect(0,0, screenWidth, screenHeight); sourceRect = new Rect(0,0,