Suppose there is an image of a ball, I want to display 10 balls, each has its own coordinate. Should there be a separate Bitmap for each image of the ball?

    1 answer 1

    Can do as 10 separate bitmap can be drawn in on canvas and made as one bitmap

    • but then why do I need to create 10 separate bitmaps if I can do everything in one? probably no reason. But if I wanted to use different images, then one bitmap for each image, am I right? And tell me bitmap is a way to encode a bitmap image and when I assign an image from resources to resources, it recodes it to fit its format and stores the result of the encoding, which I use as many times as I like. I think right? - Turalllb
    • If 10 separate images, then 10 bitmap. Yes, you think correctly / here on the wiki ru.wikipedia.org/wiki/Bitmap about bitmap. Everything is just painted - pavel163