2
votes

I've created an WPF based application showing me thumbnails of external windows. As an example i pick up icq, firefox and some other windows, create thumbnails of these and render them onto my WPF based application. That works fine already and looks like this: http://img560.imageshack.us/img560/1170/oijoijio.jpg (Just showing one thumbnail in here, but there will be multiple in future)

The WPF application will also contain some controls to actually select the windows being "thumbnailed" and a few others.

The next step and my actual question is about how i would redirect these content being rendered into a Bitmap instead of the "WPF window" itself. Is there a way to accomblish that goal? All the windows content (WPF containers and the drawn thumbnails) need to be rendered into a bitmap which i can display in directx window being owned by a game.

I know that it is possible todo that somehow, as a programm called overwolf also uses WPF inside of their application. They actually install device inline detours to hook into the rendering process of the game, where they render their wpf content. I am not sure if they use some kind of bitmap they render in there, or if they directly render the wpf content onto the dx-surface somehow.

Other ideas besides the bitmap based style i plan to go for are welcome aswell! Thanks for your reading until here, and another big hug for any answer :)

1

1 Answers

0
votes

Any WPF Visual object can be rendered into a bitmap using RenderTargetBitmap.