I’m being working in making copy and paste operations on my diagramming application.
Therefore, I need to…
-
Convert a WPF Bitmap to a D3DImage (for later implement “Copy”), and
-
Convert a D3DImage to a WPF Bitmap (for later implement “Paste”).
Notice that this requieres “Interop” between the WPF Application and the native Win-32.
How to do this, as short as possible (two functions, ideally)?
You probably found your answer in the past half year but here is how to convert a D3DImage in WPF to BitmapSource (I used vb.net in this case):
You can find it in C# in the WPFMediaKit.