Solved

XOR text display

Posted on 1998-09-01
3
285 Views
Last Modified: 2013-12-03
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.
0
Comment
Question by:dmetzler
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1414123
Create a bitmap and write the text onto the bitmap. Use BitBlt to XOR the bitmap.
0
 

Author Comment

by:dmetzler
ID: 1414124
Do you have an example of the ROP codes used for the BitBlt() - also what color is the background of the bitmap?
0
 
LVL 23

Expert Comment

by:chensu
ID: 1414125
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now