home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1432 < prev    next >
Encoding:
Text File  |  1992-08-21  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!solix.udac.uu.se!pcs321.udac.uu.se!mikael
  3. From: mikael@udac.uu.se (Mikael Lundgren)
  4. Subject: GDI: Foreground color and StretchBlt
  5. Message-ID: <mikael.64.714410136@udac.uu.se>
  6. Keywords: GDI, StretchBlt, foreground, rop, raster operation
  7. Lines: 35
  8. Sender: news@solix.udac.uu.se
  9. Organization: UDAC, Uppsala University, Sweden
  10. Date: Fri, 21 Aug 1992 15:15:36 GMT
  11.  
  12.  
  13. Hello,
  14.  
  15. I am having a bit of a problem trying to understand what my Programmer's 
  16. reference is trying to tell me.
  17.  
  18. First a short presentation  of my goal. I need to define a custom
  19. raster opertion code in order to achieve a special effect in an application
  20. we are working on. After doing some calculations I have decided that the 
  21. code to use is 0x00b8074a. The idea is that i want to use a b/w bitmap as a 
  22. kind of filter in order to put a color (specified in a brush) on a specific 
  23. area of the screen. Now, the destination bitmap is a color bitmap, this 
  24. MIGHT mean that the b/w bitmap will be converted to a color bitmap which in 
  25. turn might affect the results I see on the screen.
  26.  
  27. I have now been reading the manual (SDK Programmers Reference Volume 2) page 
  28. 918 (MS-Windows 3.1) which states the following:
  29.  
  30. "If StretchBlt must convert a monochrome bitmap to color, it sets white 
  31. bits (1) to the background color and black bits (0) to the foreground color."
  32.  
  33. My question is: what is the "foreground color"? I cannot seem to find that 
  34. info anywhere! I hope that this is a REALLY easy question to answer...
  35.  
  36. If I find the answer to this question I just might be able to move on with 
  37. this quest...
  38.  
  39. If you happen to know anything else that might be useful I'd sure like to 
  40. hear from you...!
  41.  
  42. Thank you!
  43. -
  44. Mikael Lundgren  UDAC, Uppsala University, Sweden!You saw an opinion up there?
  45. Phone: +46 18 18 78 86       Fax: +46 18 18 77 70!It's my personal view, but
  46. Email: mikael.lundgren@udac.uu.se                !you're welcome to share it!
  47.