[comp.sys.mac] Writing to offscreen bitmaps; how to get mBarHeight; PICTS...

jmm@miro.Berkeley.EDU.UUCP (05/06/87)

1.  How does one get mBarHeight from Lightspeed Pascal?

2.  I'm having trouble changing bitmaps.  I'd like to draw 
off the screen, but I seem to be doing something wrong.  I set up a window,
allocate space for a bitmap, change the window's bitmap to the new bitmap,
and then draw in the window, and finally change the window's bitmap to
the original before I get rid of the window.  (Sorry if my English is 
difficult to understand - |-)  ).  This doesn't seem to get anything into
the bitmap.  Examples in Lightspeed Pascal and/or an explanation of the
concepts involved would be greatly appreciated.

3.  I'm having a problem getting PICT resources onto the screen.  I use
GetPicture to load the resources, and Lightsbugs (I'm using Lightspeed
Pascal) display of handles allocated shows the resources as having been
loaded.  DrawPicture doesn't seem to do its job, though, as nothing
comes up when it is called.  There's a rather confusing note in IM I
about not calling DrawPicture with the "arbitrarily large initial
clipRgn," but changing clipRgn to the window (with ClipRect(window^.portRect))
doesn't seem to have any effect.  The only thing that seems to work is to
set both clipRgn and destRect to the frame of the picure.  This only draws
the picture in the upper left hand corner of the screen.  Using this approach,
changing the coordinate system of the window didn't affect the location that
the pict was drawn.  What a I doing wrong?  (The picts in the resource file
seem fine to me - there's nothing wrong with them visually.)  What am I missing here? 

James Moore
...!ucbvax!jade!thoth16!jmm
(I read mail here more often then on miro)

or

...!ucbvax!miro!jmm