Solved

XOR text display

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

816 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