11.2 Loading a Canvas

Loading a canvas is as easy as writing it (as long as you do not create any specializations of the standard graphical objects - see below):

PSfile.openRead;
PSfile.skipHeaders;
PSfile[] -> myCanvas.loadPicture -> somePicture[];
PSfile.close;
myCanvas[] -> somePicture.draw;

Refer to loadpicture.bet in ~beta/demo/bifrost for a complete example.


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