home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3235 < prev    next >
Encoding:
Internet Message Format  |  1992-11-04  |  1.4 KB

  1. 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
  2. From: rioj7@fel.tno.nl (M.L.M.Veraart)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Why do we need the operation code in a ROP?
  5. Keywords: ROP
  6. Message-ID: <1992Nov5.085119.17857@fel.tno.nl>
  7. Date: 5 Nov 92 08:51:19 GMT
  8. Organization: TNO Physics and Electronics Laboratory
  9. Lines: 21
  10.  
  11. When specifying a Raster Operation Code in a call to BitBlt 
  12. we must look up the operation code that belongs to a certain
  13. operation index (values 0..255).
  14. Isn't Windows capable of using a lookup table or is their a
  15. direct mapping from the 32 bit ROP number to the operation
  16. (AND, OR, XOR) that has to be performed on the Destination,
  17. Brush and Source bitmaps?
  18. I want to know this out of curiousity and because I have to 
  19. implement a couple of these ROPs in my own windows application.
  20. I was not able to use a 4 bit color memory BITMAP, drawing
  21. on it, and then using GetPixel() to determine the value of the
  22. pixels.
  23.  
  24. Can anybody help me?
  25. ======================================================================
  26. Mario Veraart                  TNO Physics and Electronics Laboratory
  27. email: rioj7@fel.tno.nl        The Hague
  28. -- 
  29. ======================================================================
  30. Mario Veraart                  TNO Physics and Electronics Laboratory
  31. email: rioj7@fel.tno.nl        The Hague
  32.