Pixel Manipulation in C# (Advanced topics)

Download: http://code.msdn.microsoft.com/Pixel-Manipulation-in-C-5bdb1c38

Introduction

I have been noticing that for some reason people are developing several projects with pictures in Visual Studio Projects, mainly Windows forms projects.

Some days ago I helped a guy with an issue of zoom in and out an image within a picture box. For those that don’t know this visual studio toolbox artifact, it represents a Windows picture box control for displaying an image.

After helping this guy I started to Google for some related problems and found out many other people asking the same questions. In order to help these people and other that may work with Images in Visual Studio projects I developed a small Demo, to show you how simple operations can be done. You can find this previous demo in the following link: http://code.msdn.microsoft.com/Image-Manipulation-C-09020bc1

When I started to build that demo my interest in picture manipulation increased and I continued searching and working on algorithms to manipulate images using C#. After those simple operations I mentioned before I found out that working with images manipulation its Pixels could bring me more flexibility and with it more functionalities to my picture manipulation demos.

This way and as complementary software I bring you this “Pixel manipulation in C#” with some advanced topics on working with images such as applying filters (Black and white, Sepia and my very own filters.). With these two open source projects I thing that you can start building your own image manipulation software for windows phone or windows, as you prefer.

Description

The Function included in this release are the following:

· Changing a Pixel color with mouse click

clip_image001

· Changing a Pixel color with Position manipulation

clip_image002

· Getting a Pixel Color with mouse click

clip_image003

· Getting several Pixels color with mouse move

clip_image005clip_image007

· Applying Filters

o Rainbow Filter

clip_image009

o Magic Mosaic

clip_image011

o Night Filter

clip_image013

o Hell Filter

clip_image015

o Miami Filter

clip_image017

o Zen Filter

clip_image019

o Black and White

clip_image021

o Swap

clip_image023

o Crazy Filter

clip_image025

o Mega Filter Green

clip_image027

o Mega Filter Orange

clip_image029

o Mega Filter Custom

Apply the Mega filter with the color you prefer by selecting it in the button that says “Color”

· Drawing on a Picture Box

clip_image031

· Circumvent an image in a Picture Box and watch your circumvent in another Picture Box

clip_image033

clip_image035

Building the Project

Download the project, open in Visual Studio 2010, build it and enjoy.

About Me

Rui Pedro Machado | 2012

rpmachado.wordpress.com

Anúncios

One comment

Deixe uma Resposta

Preencha os seus detalhes abaixo ou clique num ícone para iniciar sessão:

Logótipo da WordPress.com

Está a comentar usando a sua conta WordPress.com Terminar Sessão / Alterar )

Imagem do Twitter

Está a comentar usando a sua conta Twitter Terminar Sessão / Alterar )

Facebook photo

Está a comentar usando a sua conta Facebook Terminar Sessão / Alterar )

Google+ photo

Está a comentar usando a sua conta Google+ Terminar Sessão / Alterar )

Connecting to %s