Writebitmap Command Example
Details
Action
Saves the image of the selected Graph2D window to disk. The image is saved in
compressed form as RLE-4 encoded bitmap. This is useful for saving pictures
of computed images under program control so that they may be played back later
as animations.
This example defines a string-concatenation function called concat, then builds the string argument for writebitmap.
make concat(st s1, st s2) pack(list(s1,s2));
make filename concat(concat(prefix,frame),".bmp");
writebitmap filename;
Or, more simply,
writebitmap "Mybitmap.bmp"