Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!bbn!bbn.com!franco From: franco@bbn.com (Frank A. Lonigro) Newsgroups: comp.sys.mac.programmer Subject: Thanks! (was "Question about "GrafPort transfer modes"..) Keywords: I have another problem/question... Message-ID: <32993@bbn.COM> Date: 2 Dec 88 16:13:31 GMT Sender: news@bbn.COM Lines: 65 First of all I'd like to thank everyone who answered my question about grafport transfer modes. Thanks goes out to : mystone@caen.engin.umich.edu (Dean Yu) Randy CarrEric Pepke David Casseres jskuskin@eleazar.Dartmouth.EDU (Jeffrey Kuskin) beard@ux1.lbl.gov chrisj@cup.portal.com They all agreed that DrawPicture was my problem and that it was either ignoring the transfer mode I wanted to use or the picture I wanted to display was created with a transfer mode of its own. The solution was to use CopyBits which in fact did the trick. Unfortunately, after I saw the effect of ORing the picture onto the background, the result was highly undesirable. Now for my new question: The effect I am trying to accomplish is to take a picture(a game playing piece) and display it on a playing field(a checker board). What I want to be able to do is to grab the playing piece with a mouseDown and move it around on the board. I don't want to drag a gray region of it like in DragWindow. What I want to do is to move it around like when your in MacPaint and you lasso some odd shaped piece of your picture and then move it to another part of the screen. I also don't want to drag around the square-ish white rectangle that is part of the picture. Once again, I would like to just drag it around as if it had a white polygon frame in the shape of the playing piece, say 1 or 2 pixels just outside of the piece. I know this effect is possible, because ChessMaster 2000 uses it, not to mention about a 1000 other graphics oriented games. It sounds like I need some sort of algorithm to find the least bounding polygon to a given oddly shaped bitmap. Or maybe someone can give me an example of defining my own windows. According to IM v1, you can even define a window in the shape of an apple. I'm really trying to get into programming my Mac and I would appreciate any help you can give me, sample 'C' code of a simple example would be a great help. Thanks again, -franco franco@bbn.com franco%bbn.com@relay.cs.net ...!harvard!bbn!franco ==== ============= ============================== ==== ============= ============================== ==== ============= ============================== ==== ==== ==== ==== ==== ==== ==== ==== ==== ===== ==== ===== ==== ===== ==== ==== ===== ==== ===== ==== ===== ==== ==== ===== ==== ===== ==== ===== ==== ==== ===== ==== ===== ==== ===== ==== ==== ==== ==== ===== ==== ==== ==== ==== ===== ==== ======================================================= ======================================================= =======================================================