This sample demonstrates how to use Lumia Imaging Effects together with Win2D Effects. The sample covers two scenarios. First it shows how to interop between Lumia Imaging effects and Win2D effects using SoftwareBitmap. Second scenario demonstrates how to use a IDirect3DSurface to interop between the to SDKs.
Specifically, this sample will cover how to:
- Create BasicVideoEffect That uses IDirectD3Surface to interop between Lumia Imaging GrayscaleEffects and Win2D DisplacemantmapEffect.
- Use Lumia Imaging SDK to add SepiaEffect and then use Win2D to draw Text, lines, rectangles and circles. Interop is done with SoftwareBitmap. Switch between Front and back camera.
Samples
How to preview video from a webcam
Media capture using capture device
Windows.Media.Capture.MediaCapture namespace
Windows.Media.Capture.MediaCaptureInitializationSettings constructor
Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property
Hardware: Camera
Client: Windows 10
Server: Windows 10
Phone: Windows 10 Technical Preview
- Start Visual Studio 2015 and select File > Open > Project/Solution.
- Press Ctrl+Shift+B, or select Build > Build Solution.
The next steps depend on whether you just want to deploy the sample or you want to both deploy and run it.
Deploying the sample:
- Select Build > Deploy Solution.
Deploying and running the sample:
- To debug the sample and then run it, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or select Debug > Start Without Debugging.