home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!ekalenda
- From: ekalenda@netcom.com (Edward J Kalenda)
- Subject: Re: GDI: Foreground color and StretchBlt
- Message-ID: <g2_nf9#.ekalenda@netcom.com>
- Date: Fri, 21 Aug 92 19:45:01 GMT
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <mikael.64.714410136@udac.uu.se>
- Lines: 23
-
- From article <mikael.64.714410136@udac.uu.se>, by mikael@udac.uu.se (Mikael Lundgren):
- >
- > 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.
- >
- > "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...
-
- SetTextColor() sets the foreground color, SetBkColor() setss the background
- color. I think they return the color they were set to before the call.
- --
-
- Ed
- ekalenda@netcom.COM
-