Memory Address of BackBuffer?

Miscellaneous Forums/General Discussion/Memory Address of BackBuffer?

Anyone know how to get the memory address of the backbuffer so that you can perform a mem copy from an image in memory to it? I know I could use drawblock or copy rect or writepixel fast or locked pixels, but I don't want to. I want to copy memory from A (RAM) to B (Video) using a .dll (C++ or ASM) or is there a command for this in Blitz Plus? I realise the two may be in different formats e.g. Blitz keeps seems to keep the images as 24 bit i.e. 3 bytes per pixels and the display could be 16 bit (2 bytes) or 32 bit (4 bytes) or 3 I guess for 24 bit. But I'll cross this bridge later.

Thanks

LockedPixels() returns a bank

Yeah lock the backbuffer, lock the pixels and pass the bank pointer to the dll.

Similar to this : http://www.blitzbasic.com/toolbox/toolbox.php?tool=38

Hmm, I just tried locking both buffers and the using BankCopy and it's quick! but Images in Blitz PLus are 24bit and my graphics card only supports 16bit or 32bit display, it can't do 24 bit thus the BankCopy makes a horrible mess. In the old Amiga days you had bitplanes where each plane was mono but the combo effect yielded colour but I guess this would impractical with 24 bit colour as you'd need too many planes. Maybe I need to write a custom .dll to copy 3 bytes to the dest, move the dest pointer on by one byte and then repeat, but what a time consuming load of grrr. I probably won't bother.

Tim: Checked out that .dll before, it's neat, could be an option.