Click to See Complete Forum and Search --> : BitBlt and changing background color


Kdev
May 1st, 2001, 01:18 PM
I would like to be able to save and or print my form. I am using code I found on codeguru to do just this utilizing the bitblt function. My form is designed to use a black background as this looks best on screen but I would like to print using a white background to save on ink/toner. I thought that the raster option WHITENESS would do this but it just fills the picture with white. Is there a quick way to do this?

-K

shree
May 1st, 2001, 08:26 PM
Method 1: Use vbDstInvert as the last parameter of BitBlt. The destination picturebox should have the picture you want to invert.

Method 2: Create a RECT structure that encompasses the whole picture, then, use InvertRgn.

Both methods will change not only the background but the text too from light to dark.