Copying from one image to another

BlitzMax Forums/BlitzMax Beginners Area/Copying from one image to another

Hi Tony, thanks for the reply.

I don't like option B, as I will be copying from my image to the back buffer on a regular basis (I basically want to build my image on a larger image and then copy sections of it to the back buffer to create a horizontal scroller), so option A seems like the one to go for.

Being a complete NEWB at BlitzMax, however, Pixmaps are a mystery to me, and your example is too complex for my poor brain to understand.

Is there any chance that you, or someone else, could give me a quick rundown on creating a new Pixmap using

CreatePixmap:TPixmap(width,height,format,align_bytes=4 )

- I can understand the width and height, guess at format, but down't understand the align_bytes - and then perform two operations:

1. Copy a rectangular image into an arbitrary position in my large Pixmap;

2. Copy a screen sized portion of the Pixmap to the back buffer.

I can't even find a Pixmap Paste method - is it just me or are the docs hard to follow?

Finally, are Pixmap operations fast?

Many thanks.