×
Namespaces

Variants
Actions

Paper Photo App using Nokia Imaging SDK

From Nokia Developer 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: https://github.com/Srikar-Doddi/PaperPhoto PaperPhoto at GitHub]
Tested with
SDK: Windows Phone 8.0 SDK, Nokia Imaging SDK Beta 1
Devices(s): Devices tested against Nokia Lumia 920
Compatibility
Platform(s):
Windows Phone 8
Article
Created: Perseus9 (18 Jul 2013)
Last edited: hamishwillee (14 Oct 2013)

Contents

Introduction

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.

Prerequisites

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

Compatibility

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

Capabilities needed

  • ID_CAP_ISV_CAMERA
  • ID_CAP_MEDIALIB_AUDIO
  • ID_CAP_MEDIALIB_PLAYBACK

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

The

This page was last modified on 14 October 2013, at 04:28.
147 page views in the last 30 days.
×