Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!mcsun!mcvax!hp4nl!eutrc3!rcbaem From: rcbaem@eutrc3.urc.tue.nl (Ernst Mulder) Newsgroups: comp.sys.mac.programmer Subject: Re: Can anyone answer these Questions? Message-ID: <862@eutrc3.urc.tue.nl> Date: 22 Aug 89 16:16:21 GMT References: <840@eutrc3.urc.tue.nl> <17406@bellcore.bellcore.com> <3707@internal.Apple.COM> Organization: Eindhoven University of Technology, The Netherlands Lines: 34 In article <3707@internal.Apple.COM> wrs@apple.com (Walter Smith) writes: > >I'm happy to say that Bill Atkinson already implemented a bitmap-shrinking >algorithm many years ago, and it's sitting there in CopyBits waiting for >you. Just make the source and destination rectangles for CopyBits >different sizes. > >- Walt > Sorry Walt, but you misread my question. You were not the only one, so probably I wasn't entirely clear enough. I know what CopyBits does, what I actually wanted is an implememtation of what MacPaint (for instance) does when you press the Command key while selecting graphics with the selection rectangle. When you release the mouse, the SIZE of the selection rectangle is schrinked to fit the graphic. Talking about graphics, maybe an illustration is in place here: Before releasing the mouse: After releasing the mouse -----********------- --********- | ******** | | ********| | ******** | |******** | | ***** | | ***** | | | ----------- -------------------- (Happens only when Command was pressed) Hope this settles it once and for all. (Do I need SeedFill and CopyMask for this? ) Ernst. >