Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: anon@usl.edu Newsgroups: comp.sys.sun Subject: SAVING & LOADING a CANVAS to a FILE(HELP!!!!!) Keywords: Windows Message-ID: <4845@brazos.Rice.edu> Date: 8 Feb 90 21:26:26 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 24 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 37, message 3 I am currently programming in sunview(sunwindows) for a class project. I created a canvas window of size 1100(height), 700(width) with CANVAS_AUTO_SHRINK set to FALSE to edit & view a canvas of size 2500, 1100 (width, height). I am drawing onto the canvas using the canvas' pixwin. I want to SAVE my drawing on the CANVAS into a FILE(People familiar with 'fig' may know that it is similar). I used pw_read to read the flowchart into a pixrect and then used pr_dump_image to dump the pixrect into a file. It did not work. I tried many variations but could not get it to save. I went thro' the sunview system's programmer's manual also and did not find a way to do it (I don't know if I missed any info' :-)). Also I want to LOAD the drawing from the FILE onto the CANVAS. If Anyone has worked on this particular aspect in sunview, please send me your suggestions/methods to do it(save canvas onto a file & load onto the canvas from a file) and save this soul!! PLEASE mail your suggestions to me at the earliest possible. Thanx in advance, (E-mail address: rrv@cacs.usl.edu)