Solved

XOR text display

Posted on 1998-09-01
3
274 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

13 Experts available now in Live!

Get 1:1 Help Now