Black Screenshot
-
I have a chat app that use a webcam. I am taking a screenshot of the preview window in order to get the image. Only problem is, if the window is hidden or say minimized, my images come back as big Black square..ughh Anyone know how to get the window to keep painting itself when its hidden or minimized? Any help would be appreciated. Thanks -Jason
-
I have a chat app that use a webcam. I am taking a screenshot of the preview window in order to get the image. Only problem is, if the window is hidden or say minimized, my images come back as big Black square..ughh Anyone know how to get the window to keep painting itself when its hidden or minimized? Any help would be appreciated. Thanks -Jason
Hidden windows never the get told to paint themselves by Windows. You can try sending a WM_PAINT message to the target window handle, but there is no guarantee that it'll work anyway. If the window determines that it, itself, is obscured, it won't waste the time painting those regions. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome