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