Suppose, we've got a display sized 100x100, an image 100x50, and I want to enlarge that image so that it has the same height as the screen does. So the image will be 200x100. After that I want to make the animation of image movement to the left and to the right. I've found 2 ways of the realization of my task:
- To create a new image using
Bitmap.createScaledBitmap()
. But the image created this way will occupy twice more RAM. - To use
matrix.setScale()
in everyonDraw()
. But this works very slow. Is there any other better solution?