Namespaces

Variants
Actions

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 over the next few weeks. Thanks for all your past and future contributions.

Retro Game Filter Recipe (Nokia Imaging SDK)

From Wiki
Jump to: navigation, search
.

This article explains how to create a retro game-like effect.

WP Metro Icon WP8.png
Article Metadata
Tested with
Devices(s): Nokia Lumia 1020
Compatibility
Platform(s):
Windows Phone 8
Article
Created: hlabadi (14 Jul 2014)
Last edited: hlabadi (14 Jul 2014)

Contents

Introduction

This filter recipe combines two effects. The Pixelation Effect pixelates the image, the the Quantize Color Effect is applied to replace the colors and make the image more 8 bit-like.

The Retro Game Filter Recipe

Source Code

var firstPhaseEffect = new PixelationEffect(m_StreamImageSource, 10);
m_CustomEffect = new QuantizeColorEffect(firstPhaseEffect, ref App.AssignedColorCache, null, QuantizeColorEffect.ColorPalette.WebSafeHalf);

Usage

Simply add a new case branch, in my case, it's 50.

                case 50:
{
var firstPhaseEffect = new PixelationEffect(m_StreamImageSource, 10);
m_CustomEffect = new QuantizeColorEffect(firstPhaseEffect, ref App.AssignedColorCache, null, QuantizeColorEffect.ColorPalette.WebSafeHalf);
}
break;

Then don't forget to increase the effect count!

private int m_EffectCount = 51;

Performance

Device FPS
Nokia Lumia 1020 5 FPS

Summary


Version Hint

Windows Phone: [[Category:Windows Phone]]
[[Category:Windows Phone 7.5]]
[[Category:Windows Phone 8]]

Nokia Asha: [[Category:Nokia Asha]]
[[Category:Nokia Asha Platform 1.0]]

Series 40: [[Category:Series 40]]
[[Category:Series 40 1st Edition]] [[Category:Series 40 2nd Edition]]
[[Category:Series 40 3rd Edition (initial release)]] [[Category:Series 40 3rd Edition FP1]] [[Category:Series 40 3rd Edition FP2]]
[[Category:Series 40 5th Edition (initial release)]] [[Category:Series 40 5th Edition FP1]]
[[Category:Series 40 6th Edition (initial release)]] [[Category:Series 40 6th Edition FP1]] [[Category:Series 40 Developer Platform 1.0]] [[Category:Series 40 Developer Platform 1.1]] [[Category:Series 40 Developer Platform 2.0]]

Symbian: [[Category:Symbian]]
[[Category:S60 1st Edition]] [[Category:S60 2nd Edition (initial release)]] [[Category:S60 2nd Edition FP1]] [[Category:S60 2nd Edition FP2]] [[Category:S60 2nd Edition FP3]]
[[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:S60 3rd Edition FP2]]
[[Category:S60 5th Edition]]
[[Category:Symbian^3]] [[Category:Symbian Anna]] [[Category:Nokia Belle]]

This page was last modified on 14 July 2014, at 12:08.
245 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×