copy an image from the canvas

Photon 1.13, PhAB, Watcom C++ 10.6

I am drawing several bitmaps and I want to be able to hide them
individually.
Before I draw a bitmap, I want to copy the contents of the screen which
will be covered by the bitmap into a buffer image. In order to hide this
image, I just want to display the buffer image.

I just can’t find any Photon routine to copy a region of the screen to a
buffer image.

How can I make it ?
Any help would be fine!

Gerd

Gerd Hedtke <Gerd.Hedtke@t-online.de> wrote:

Photon 1.13, PhAB, Watcom C++ 10.6

I am drawing several bitmaps and I want to be able to hide them
individually.
Before I draw a bitmap, I want to copy the contents of the screen which
will be covered by the bitmap into a buffer image. In order to hide this
image, I just want to display the buffer image.

I just can’t find any Photon routine to copy a region of the screen to a
buffer image.

How can I make it ?
Any help would be fine!

There has never been a way to read the screen in Photon 1.xx

The recommended thing to do is to just draw your stuff, and when you’re
done, issue an expose event comprising the rectangle you want to redraw,
and let the other applications redraw their portion of the screen.