home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!tnofel!felfs!rioj7
- From: rioj7@fel.tno.nl (M.L.M.Veraart)
- Newsgroups: comp.os.ms-windows.programmer.misc
- Subject: Why do we need the operation code in a ROP?
- Keywords: ROP
- Message-ID: <1992Nov5.085119.17857@fel.tno.nl>
- Date: 5 Nov 92 08:51:19 GMT
- Organization: TNO Physics and Electronics Laboratory
- Lines: 21
-
- When specifying a Raster Operation Code in a call to BitBlt
- we must look up the operation code that belongs to a certain
- operation index (values 0..255).
- Isn't Windows capable of using a lookup table or is their a
- direct mapping from the 32 bit ROP number to the operation
- (AND, OR, XOR) that has to be performed on the Destination,
- Brush and Source bitmaps?
- I want to know this out of curiousity and because I have to
- implement a couple of these ROPs in my own windows application.
- I was not able to use a 4 bit color memory BITMAP, drawing
- on it, and then using GetPixel() to determine the value of the
- pixels.
-
- Can anybody help me?
- ======================================================================
- Mario Veraart TNO Physics and Electronics Laboratory
- email: rioj7@fel.tno.nl The Hague
- --
- ======================================================================
- Mario Veraart TNO Physics and Electronics Laboratory
- email: rioj7@fel.tno.nl The Hague
-