Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Latest commit

 

History

History

LumiaImagingSDKWin2DDemo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Lumia Imaging SDK Win2D Demo

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:

  1. Create BasicVideoEffect That uses IDirectD3Surface to interop between Lumia Imaging GrayscaleEffects and Win2D DisplacemantmapEffect.
  2. 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.

Related topics

Samples

UniversalCameraSample

How to preview video from a webcam

Media capture using capture device

Reference

Lumia Imaging SDK

Windows.Media.Capture.MediaCapture namespace

Windows.Media.Capture.MediaCaptureInitializationSettings constructor

Windows.Media.Capture.MediaCaptureInitilizationSettings.VideoDeviceId property

System requirements

Hardware: Camera

Client: Windows 10

Server: Windows 10

Phone: Windows 10 Technical Preview

Build the sample

  1. Start Visual Studio 2015 and select File > Open > Project/Solution.
  2. Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

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:

  1. Select Build > Deploy Solution.

Deploying and running the sample:

  1. 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.