I have a transparent overlay that renders opaque rectangles within itself. It is the topmost window and occupies the entire screen. How can I take a screenshot without including this window in such a way that there is no flicker on the window during the process of taking the screen shot.
I tried to turn the overlay window visibility to false and take the screenshot but this is inadequate because the time taken to screenshot the Desktop after results in a noticeable flicker while the screenshot is being taken via the CopyFromScreen method. Likewise the other windows cannot be brought to the foreground as the overlay window is expected to always remain on top with its opaque blocks visible.
Kow is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.