EDIT: Since my original problem was related to my mistake, I will rephrase this question.
Im placing Silverlight in a window inside my C ++ application based on the code found here .
Now I would like to copy the contents of the control into memory in order to use the contents inside my own rendering. The problem is that when I set the “EnableGPUAcceleration” value to true, then BitBlt stops working, all I get is black.
I believe there should theoretically be a way to copy the contents of a Silverlight control with GPU acceleration with its alpha, for example. with something like glReadPixels.
Has anyone figured out how to copy content using the alpha of a Ukrainianless gpu-accelerated Silverlight control?
Another problem is that the window must be visible, and no other window can block it, otherwise I won’t get the corresponding content. I would like the hosting window to be invisible.
A working code example can be found here (although without the actual BitTlt "ting" that I am trying to get to work).
c ++ winapi directx silverlight opengl
ronag
source share