How to copy image without using the clipboard?
问题 Question: I have the below code to capture an image from a webcam. My problem is this part: SendMessage(hCaptureWnd, WM_CAP_COPY, 0, 0); // copy it to the clipboard What it does is copy the image from the window to the clipboard, and then create a byte array out of it. It works - as long as you don't use the clipboard while the program is running. The problem is, this doesn't even work for myself, as I sometimes copy something while Visual Studio takes ages to start debug the web application,