[comp.windows.ms] SAVING & LOADING a CANVAS to a FILE

rrv@gator.cacs.usl.edu (RamamohanRao Vakkalagadda) (02/08/90)

Hi,
I am new to this newsgroup and I don't know if this topic has already been
discussed on the net. Forgive me if that is the case.

If already some articles came on this subject please mail them to me.

Anyway here goes my question:

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,
RAM              (E-mail address:   rrv@cacs.usl.edu)