How to make a rectangle on screen invisible to screen capture ?
Posted
by Kesarion
on Stack Overflow
See other posts from Stack Overflow
or by Kesarion
Published on 2010-06-05T23:48:29Z
Indexed on
2010/06/05
23:52 UTC
Read the original article
Hit count: 166
How can I create a rectangle on the screen that is invisible to any sort of screen capture(printscreen or aplications) ?
By create a rectangle on screen I mean something like this:
#include <Windows.h>
#include <iostream>
void drawRect(){
HDC screenDC = ::GetDC(0);
::Rectangle(screenDC, 200, 200, 300, 300);
::ReleaseDC(0, screenDC);
}
int main(void){
char c;
std::cin >> c;
if (c == 'd') drawRect();
std::cin >> c;
return 0;
}
I'm using Visual Studio 2010 on Windows XP
© Stack Overflow or respective owner