Link to home
Start Free TrialLog in
Avatar of dmetzler
dmetzler

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dmetzler
dmetzler

ASKER

Do you have an example of the ROP codes used for the BitBlt() - also what color is the background of the bitmap?
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