Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: Bitmap to region conversion Message-ID: <1498@internal.Apple.COM> Date: 22 Apr 89 00:29:22 GMT References: <8904181853.AA00466@vs08csc.UMD.EDU> <21369@santra.UUCP> Organization: Apple Lines: 20 In article <21369@santra.UUCP> jmunkki@kampi.hut.fi (Juri Munkki) writes: > In article <8904181853.AA00466@vs08csc.UMD.EDU> russotto@wam.UMD.EDU writes: > >I've heard that there is a routine available for converting > >bitmaps to regions (for use in DragGrayRgn for example) > > This seems to be one of the most commonly asked questions in > comp.sys.mac.programmer. The standard answer is that code that does > this is available from the Apple software licensing department (or > something like that). I wonder if anyone of those who asked ever > contacted Apple. There *is* a call, BitMapRgn, available in glue form from the Apple software licensing department. It will also be in a future system software release. It is very fast, based on an algorithm by Andy Hertzfeld that he used to generate regions to drag from icon masks in Servant. (Incidentally, this is the only code in current Apple system software that came from Servant.) -- Darin Adler, System Software Scapegoat, Apple Computer Internet: darin@Apple.com UUCP: {nsc,sun}!apple!darin