i'm pretty sure, this is a realy simple question. but i can't find something on google so maybe my keywords are just wrong.
Let's say i have a image, we call it "tree". And also a bitmap called "forest", what i now want to do is something like this:
forest.addImage(tree, positionXonBitmap, positionYonBitmap, startPositionXImage, startPositionYImage, ImageLength, ImageWidth);
So Copy the "tree" Image to the "forest" bitmap, in which size and on which position i want.
I can't see any function for bitmaps to doing this. Maybe you know something?
My current approach would be to read out the pixels from the image "tree" and use them in "forest" with setPixel (X, Y). But i think this is a realy bad practice.
I didn't have to use Images or Bitmaps. I'm completly free here. All i want to do is to load an Image from disk and copy it to another Image which i can manipulate and is bigger.
So may you have another idea?!
Thank you