How do you capture/generate an image from a IPreviewHandler COMIMPORT in WPF/C#?
I was wondering if it is po开发者_如何学Cssible to generate an image (capture) of a ComImport object (like the Win7 PreviewHandler)?
I've tried to utilizing RenderTargetBitmap (on the parent control hosting the ComImport), as well as create a WinFormHost and using the DrawToBitmap method. Both however, proved useless as they would only show an empty frame.
Any help is appreciated!
精彩评论