I copied the screen to an imagebuffer.
Now how do I turn that imagebuffer into a sprite, so I can use it as a backdrop.
gfxBlank=CreateImage (1024,768)
CopyRect 0,0,1024,768,0,0,FrontBuffer(),ImageBuffer(gfxBlank)
The screen is now in the ImageBuffer, but I can't use it.
If I use the following.
CopyRect 0,0,1024,768,0,0,ImageBuffer(gfxBlank),FrontBuffer()
It is overwritten by the BackBuffer on the next frame.
So it needs to be made into a sprite, so it stays on the screen in the background.
Now how do I turn that imagebuffer into a sprite, so I can use it as a backdrop.
gfxBlank=CreateImage (1024,768)
CopyRect 0,0,1024,768,0,0,FrontBuffer(),ImageBuffer(gfxBlank)
The screen is now in the ImageBuffer, but I can't use it.
If I use the following.
CopyRect 0,0,1024,768,0,0,ImageBuffer(gfxBlank),FrontBuffer()
It is overwritten by the BackBuffer on the next frame.
So it needs to be made into a sprite, so it stays on the screen in the background.