[comp.sys.mac.programmer] Region problem

clubmac@runx.ips.oz (Macintosh Users Group) (01/28/89)

I want to set a region to the shape of a picture, so that when I use
copyBits to blit it back from an offscreen bitmap it can mask the picture,
thus protecting others already on screen. I have seen Pascal code from
other programs like this....

aRgn := neRgn;
openRgn;
drawPicture(aPic,aPic^^.picFrame);
closeRgn(aRgn);

....Except when I do it all I get back is an empty region. So how do I do
what I want to do?

Above message posted on behalf of John Maling, a member of our user group.


Thanks in advance,
Jason Haines - President, Club Mac
Australia's largest Macintosh Users Group, with over 1500 members.

Phone Home:  011-61-2-73-1016
OZ Post:     Box 213, Holme Building, Sydney University, NSW, 2006, Australia
Internet:    clubmac@runx.ips.oz.au    UUCP: uunet!runx.ips.oz.au!clubmac