a pixmap is a bank (linear array of int data), you only need to convert it to the needed pixmap format and then handle the byteptr to the dll.
As you can't render to textures but only to pixmaps, using them will be the faster way as well.
As you can't render to textures but only to pixmaps, using them will be the faster way as well.