Reputation: 17293
I am using BitBlt WinAPI to compose a bitmap using C++, and I was wondering what flags do I need to use to invert the colors in it?
Upvotes: 0
Views: 2702
Reputation: 1395
You can use BitBlt()
with NOTSRCCOPY
.
Here is your code:
HDC hdc = GetDC(HWND_DESKTOP);
BitBlt(hdc, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), hdc, NULL, NULL, NOTSRCCOPY);
Upvotes: 1
Reputation: 69652
What did you try?
Upvotes: 1