How to take a screensot by using C++? RRS feed

  • Question

  • Hi,

    At this time let's focus at How to take a screenshot by using C++, because there's no way to do that with C#.

    Video content in a MediaElement can't be captured using RenderTargetBitmap. That includes capturing frames from within video content.

    I would like to take a screenshot of video content in a MediaElement? If there is a way to go please let me know.

    Any third party I will buy.

    It would be great if I can do this by C#

    Thanks and Best Regards,


    Wednesday, September 17, 2014 10:53 PM


  • C++ and C# have essentially the same capabilities here. There is no screenshot API, but you can capture most elements with RenderTargetBitmap.

    You can use C++ to write an MFT to capture a video frame from your MediaElement but you will need to then compose that with the results of the RenderTargetBitmap for the rest of the screen.

    See the Media extensions sample  for examples of MFTs.


    Wednesday, September 17, 2014 10:59 PM