Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Paper Photo App using Nokia Imaging SDK

From Wiki
Jump to: navigation, search

Paper Photo application demonstrates the use of Sketch effect using Nokia Imaging SDK. Sketch Effect is applied to viewfinder stream in real-time. The goal here is to provide a simple example to help windows developers understand Nokia Imaging SDK.

SignpostIcon XAML 40.png
WP Metro Icon WP8.png
Article Metadata
Code Example
Source file: PaperPhoto at GitHub]
Tested with
SDK: Windows Phone 8.0 SDK, Nokia Imaging SDK Beta 1
Devices(s): Devices tested against Nokia Lumia 920
Windows Phone 8
Created: Perseus9 (18 Jul 2013)
Last edited: hamishwillee (14 Oct 2013)



The Nokia Imaging SDK is a library for manipulating image data captured and stored by mobile devices. The features include decoding and encoding JPEG images, applying filters and effects, cropping, rotating and re-sizing. The Nokia Imaging SDK provides more than 50 pre-made filters and effects that have been specifically developed for mobile imaging, with speed and memory performance as key drivers. The SDK is super-fast, thanks to meticulous memory and code optimisation. The patented JPEG technology, RAJPEG, contributes to making this possible, as it allows access to any image data without decoding the whole image. That means you can apply effects to high resolution images, without worrying about your memory budget. This article demonstrates the use of Sketch effect using Nokia Imaging SDK. Sketch Effect is applied to viewfinder stream in real-time.


  • C# basics
  • Windows 8
  • Windows Phone 8 SDK
  • Nokia Imaging SDK Beta
  • Microsoft Visual Studio Express 2012 for Windows Phone 8


Windows Phone 8. Tested to work on Nokia Lumia 920. Developed with Microsoft Visual Studio Professional 2012.

Capabilities needed


Used APIs

  • System.Linq
  • System.Runtime.InteropServices.WindowsRuntime
  • System.Threading.Tasks
  • System.Windows.Media
  • System.Windows.Threading
  • Windows.Phone.Media.Capture
  • Windows.Storage.Streams
  • Nokia.Graphics
  • Nokia.Graphics.Imaging
  • Nokia.InteropServices.WindowsRuntime

Project Implementation

The example consists basically of three key classes. The main page is your typical phone application page implemented by a XAML file and a C# counterpart. The main page implements the application UI including the MediaElement which displays the camera viewfinder with an effect. The MainPage class also owns the instances of the two other key classes: CameraStreamSource and NokiaSketchEffect. The CameraStreamSource, derived from MediaStreamSource, provides the camera data. The NokiaSketchEffect implements the sketch effect of the application.

Visual Studio Solution Structure

User Interface


This page was last modified on 14 October 2013, at 01:28.
72 page views in the last 30 days.