Solved

XOR text display

Posted on 1998-09-01
3
314 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Fox Pro commands 15 62
Get the most recent file to copy into a sql table with ssis 2 113
Best book to learn C++ 4 96
Need more details 5 191
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

737 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