XOR text display

How can I display exclusive-OR text using the Win32 SDK?  All of the SetROP2() functions seem to only work on the current pen functions.
dmetzlerAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Create a bitmap and write the text onto the bitmap. Use BitBlt to XOR the bitmap.
0
 
dmetzlerAuthor Commented:
Do you have an example of the ROP codes used for the BitBlt() - also what color is the background of the bitmap?
0
 
chensuCommented:
SRCINVERT combines the colors of the source and destination rectangles by using the Boolean XOR operator. The background should be black. And note the following KB article,

Inverting Color Inverts Palette Index, Not RGB Value
http://support.microsoft.com/support/kb/articles/q71/2/27.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.