Path: utzoo!attcan!uunet!samsung!uakari.primate.wisc.edu!umriscc!mcs213f.cs.umr.edu!mcastle From: mcastle@mcs213f.cs.umr.edu (Mike Castle (Nexus)) Newsgroups: comp.graphics Subject: Re: Hexagonal bit maps Message-ID: <1942@umriscc.isc.umr.edu> Date: 14 Jan 91 03:51:41 GMT References: <26275@uflorida.cis.ufl.EDU> Sender: news@umriscc.isc.umr.edu Organization: University of Missouri - Rolla Lines: 40 In article <26275@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian K. W. Hook) writes: > > 0011111100 > 0111111110 > 1111111111 > 0111111110 > 0011111100 Clip you image to the hexagonal shape (such as by ANDing it with the above sample image). Using the same above sample image, do a PUTIMAGE with the NOTPut option. Now do a PUTIMAGE with the clipped image with the ORPut option. This may cause a slight flicker at the spot you are changing, but it should work. The hardest part will probably be clipping the image. If your pulling stuff off the screen to be moved, you might be able to clip it on a separate graphics page (not the current one). I haven't done much graphics programming yet, so I don't know how difficult that would be. If your creating a bunch a images for later use, then it will probably be no problem clipping it nicely. Hope this helps. BTW, anyone no how to access the 320x200x256 mode on a VGA? or is that SVGA only? I've seen lots of programs that use it, but can't seem to find any mention of it in either TPascal or TC++ manuals. I've picked up a couple of .BGI drivers, but I haven't had a chance to look at them. All my graphics programming will probably have to wait until summer. :-< Tanx. -- Mike Castle (Nexus) S087891@UMRVMA.UMR.EDU (preferred) | ERROR: Invalid mcastle@mcs213k.cs.umr.edu (unix mail-YEACH!)| command 'HELP' Life is like a clock: You can work constantly, and be right | try 'HELP' all the time, or not work at all, and be right twice a day. |