ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

White Text on Black Background


Q: I've tried in vain to find a way to show white text on a black background. Is there a way to do this, and if so, how?

A: The trick is to use the srcBic pen mode:

	FillRect(theRect, black); 
	PenMode(srcBic); 
	DrawString(myString);

Note that this technique is for on-screen viewing, not for printing to a PostScript printer.

[Sep 15 1995]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.