DwmRegisterThumbnail detects transparency
It can de drawn on a background with a given color (then I used D3DXSaveSurfaceToFileInMemory in an old test to get the resulting bitmap bits, but not sure if it is necessary...)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
My goal is to get an HDC of an image or image of the contents of a layered window in Windows 7 and above.
I tried PrintWindow(hwndMag, hdcDest, PW_RENDERFULLCONTENT)
, but this requires Windows 8.1. Note that layered windows may contain transparency, or be obscured, and I need a solution that meets the above requirements, thanks!
DwmRegisterThumbnail detects transparency
It can de drawn on a background with a given color (then I used D3DXSaveSurfaceToFileInMemory in an old test to get the resulting bitmap bits, but not sure if it is necessary...)