How to print inverse in GDI Text

T

Terry Olsen

I'm using the following brush and for normal text it works fine. How would
I go about displaying inverse text, say, a single word is inverse in a line
of text?

myBrush = New SolidBrush(Color.White)
g.DrawString(text, myFont, myBrush, myRect)
 
T

Terry Olsen

I can do that...but all it does is change the text color. I need the
background color for that particular word to be inversed as well (swap
text/background colors)

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top