11.1 Saving a Canvas

To save a canvas to a file all you need to do is print it to that file:

PSfile.openWrite;
PSfile.startEPSfile;
((0,0,595,822),true,1,PSfile[]) -> myCanvas.writeEPS;
PSfile.endEPSfile;
PSfile.close;

For a full-fledged example, refer to storepicture.bet in ~beta/demo/bifrost.


The Bifrost Graphics System - Reference Manual
© 1991-2004 Mjølner Informatics
[Modified: Monday October 16th 2000 at 13:43]