int  __stdcall downloadtexture(int texture,int surface,void* pointer,int sizelimit);

You can download a existing texture from the texture memory.
Note: Before it checks the texture size, and format by gettextureprops.
    texture: Id of texture.
    surface:  number of mipmap surface of texture
pointer: buffer of image of texture
sizelimt: buffer of image of texture

[out]: new image of texture