[comp.sys.amiga] Capturing/printing a window

cosell@bbn.com (Bernie Cosell) (02/06/88)

I'm not sure if I'm (again) overlooking something obvious or not: I'm
busily doing some programming hacking with my Amiga... all in
AmigaBasic as it turns out (but with a surprising number of direct
calls to AmigaDOS to do some of the real work).  And, I happen to have
reached apoint where my program did _exactly_ what I wanted it to do.
Now what?  I discovered that I had no clue what I can do with my image
other than look at it.  What I would have liked was to set up a menu
item that could save or print the window (save and then be able to
later print would be optimal, but just print would be OK).  Of course
I have handles on the Screen and Window and RastPort and ..
structures, but I don't quite know what to do them at this point.

I assumed that this would be an easy/well known thing to do, since it
seems like an obvious thing to want to do, but I didn't see any info
that helped much.  I'd appreciate any advice or help y'all could provide.
Thanks!

ps:  note that this is backwards to the round of discussion that went by
recently: usually the request is from a USER trying to capture the
screen (and so you have to worry about getting control, and getting
the right display set up and such).  In this case, I'm working on the
PROGRAM, and (in fact) I mostly don't care about what the user
actually sees on the display: I'm working from the underlying structures
regardless of the window sizing, whether it's partially obscured, etc.
   __
  /  )                              Bernie Cosell
 /--<  _  __  __   o _              BBN Labs, Cambridge, MA 02238
/___/_(<_/ (_/) )_(_(<_             cosell@bbn.com