How To Resize Bitmap In Canvas?
I can't find a answer on other questions here and on Google. The problem is, that the Bitmaps created in GameView are too big on some screens (on my Galaxy S5 they are correct) and
Solution 1:
It's very easy. Just use canvas.scale
canvas.save(); // Save current canvas params (not only scale)canvas.scale(scaleX, scaleY);
canvas.restore(); // Restore current canvas params
scale = 1.0f
will draw the same visible size bitmap
Post a Comment for "How To Resize Bitmap In Canvas?"