I'd be interested to see your code. Get (and especially) Paste Image work extremely fast when used correctly.
Quote: "What I want is to write directly to the memory, where the image is located."
But this is what locking the pixels allows

Maybe this will explain better:
1) In your loop (function, whatever) lock the pixels
2) Get the pixels pointer into a variable
3) You now have the direct memory location of the current image (typically screen)
4) Use "copy memory" or whatever you need to do in order to change the image
5) Unlock pixels
This is extremely fast, you can literally copy thousands of pixels around per frame (or blocks of memory, whatever you need). The one thing it doesn't do though which you probably want is to let you specify the image of which you're manipulating. You'd use the above for very fast direct display (screen) modifications.
Cheers,
Rich
"Gentlemen, we have short-circuited the Universe!"