Flush a memory context to its bitmap
#include <photon/PhRender.h> int PmMemFlush( PmMemoryContext_t *mc, PhImage_t *image );
This function forces any unprocessed draw-stream commands to be processed. Then, the PhImage_t structure pointed to by image is filled in with information from the memory image. The image can then be rendered via any of the PgDrawImage*() or PgDrawPhImage*() functions.
“Flickerless animation” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide