Hello,
I have a problem getting an 'unmanaged compointer' from a Direct3D surface.
The DirectShow.net VMR9 object can show bitmaps onto the video, and uses a reference to the bitmap. This can be GDI (a hDC), but also a 'unmanaged compointer' to the surface. I want to use Direct3D because there a more features that I can use.
I C# there is something like:
unmanagedSurface = surface.GetObjectByValue(DxMagicNumber);
I have searched for many houres on the internet for a solution... I have tried some Interop.Marshal stuff... but nothing worked
I know that there is a SlimDX library, but I prefer the Microsoft Direct3D.
Is there anybody here who knows how to use the direct3D surface in combination with the DirectShow.net VMR9/IVMRMixerBitmap9 objects???
I'm using the DirectShow.net 2005 and the Microsoft DirectX9 SDK
Mike
I have a problem getting an 'unmanaged compointer' from a Direct3D surface.
The DirectShow.net VMR9 object can show bitmaps onto the video, and uses a reference to the bitmap. This can be GDI (a hDC), but also a 'unmanaged compointer' to the surface. I want to use Direct3D because there a more features that I can use.
I C# there is something like:
unmanagedSurface = surface.GetObjectByValue(DxMagicNumber);
I have searched for many houres on the internet for a solution... I have tried some Interop.Marshal stuff... but nothing worked
I know that there is a SlimDX library, but I prefer the Microsoft Direct3D.
Is there anybody here who knows how to use the direct3D surface in combination with the DirectShow.net VMR9/IVMRMixerBitmap9 objects???
I'm using the DirectShow.net 2005 and the Microsoft DirectX9 SDK
Mike