home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gatech!concert!samba!usenet
- From: Todd_Lewis@unc.edu (Todd M. Lewis)
- Subject: Re: Help reading particular Pixels
- Message-ID: <1992Dec28.152222.25316@samba.oit.unc.edu>
- Sender: usenet@samba.oit.unc.edu
- Nntp-Posting-Host: guitar.oit.unc.edu
- Organization: UNC Office of Information Technology
- References: <BzvIv4.G2o@uceng.uc.edu>
- Distribution: na
- Date: Mon, 28 Dec 1992 15:22:22 GMT
- Lines: 32
-
- In article <BzvIv4.G2o@uceng.uc.edu> rbatra@uceng.uc.edu (Rajesh Batra) writes:
- > I am trying to use
- > BltMaskBitMapRastPort(...,minterm,bltMask),
- > where minterm is 0xc0 (exact copy) and my bltMask contains only 1's
- > where I want to read the information.
-
- The minterm is probably your problem. BMBMRP() is more complicated than
- it looks, and the minterm is used in a more complicated way than it is
- in other functions (BltBitMap() for example). There are only two
- useful values for the minterm for BltMastBitMapRastPort().
- The autodoc for BltMaskBitMapRastPort() lists them:
-
- minterm - either (ABC|ABNC|ANBC) if copy source and blit thru mask
- or (ANBC) if invert source and blit thru mask
-
- Those constants come from <hardware/blit.h>, to wit:
- /* definitions for blitter control register 0 */
- #define ABC 0x80
- #define ABNC 0x40
- #define ANBC 0x20
- #define ANBNC 0x10
- #define NABC 0x8
- #define NABNC 0x4
- #define NANBC 0x2
- #define NANBNC 0x1
-
- So, (ABC|ABNC|ANBC) == 0x80 | 0x40 | 0x20 == 0xE0, not 0xC0 as you might
- expect.
- --
- _/_/_/ _/ Todd_Lewis@unc.edu You can lead a horse to
- _/ _/ utoddl@guitar.oit.unc.edu Mohammad, but you can't make
- _/ _/_/_/ a mountain drink a mole hill.
-