Hi,
The routine rimage makes a direct copy of the graphics in memory to a file. The format
is system dependent. It's for example different for Windows and X11 systems and for
8-, 24-, or 32-bit colour modes. The routine was originally written for a fast image replay
on the same system without any conversions.
I would suggest to use one of the routines rpng, rtiff, rgif or rbmp to copy the graphics
in a window to a known graphics format.
With best regards,
Helmut