BeginPaint/EndPaint or GetDC/ReleaseDC?
Which is better, to use BeginPaint/EndPaint, or to use GetDC/ReleaseDC?
the magic inside the machine — a dream of Mohammad Elsheimy
Archive for the ‘Windows GDI’ Category.
Which is better, to use BeginPaint/EndPaint, or to use GetDC/ReleaseDC?
This article discusses how you can display the page in print preview as grayscale if the printer is black-and-white. It discusses first how you can convert colors to grayscale. After that is discusses how to detect whether you are in print preview or not and whether the current printer is color or black-and-white printer. Let’s go…