Windows Phone 7 Mango ‘PhotoFun’ Application


Windows Phone 7.1 ‘Mango’  unveils several exciting features. One of them is ‘PhotoFun’ which is a pretty cool staff with real device.

Just put the device in landscape mode & scale down to capture image either in ‘Gray-Scale, Sepia, Flowers, Old-Frame ‘ options.

The application enables to capture, load , save & feed Data.

Check out some code :

protectedoverridevoid OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)

{

if(null == camera)

{

camera =  newPhotoCamera();

camera.Initialized += camera_Initialized;

 

//Event is fired when the button is half pressed


 

CameraButtons.ShutterKeyHalfPressed += camera_ButtonHalfPress;

 

//Event is fired when the button is fully pressed


 

CameraButtons.ShutterKeyPressed += camera_ButtonFullPress;

 

//Event is fired when the capture sequence is complete and an image is available.


camera.CaptureImageAvailable += camera_CaptureImageAvailable;

camera.CaptureCompleted += camera_CaptureCompleted;

 

//Set the VideoBrush source to the camera


viewfinderBrush.SetSource(camera);

}

 

base.OnNavigatedTo(e);

}

 

protected  overridevoid OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)

{

CameraButtons.ShutterKeyPressed -= camera_ButtonFullPress;

CameraButtons.ShutterKeyHalfPressed -= camera_ButtonHalfPress;

pumpEffectedFrames =  false;

camera.Dispose();

camera = null;

base.OnNavigatedFrom(e);

}

Download Code Samples: https://skydrive.live.com/#!/?cid=7f185b0e5a1ba82e&sc=documents&uc=11&id=7F185B0E5A1BA82E%21130!cid=7F185B0E5A1BA82E&id=7F185B0E5A1BA82E%21130&sc=documents

 

 

 

Advertisements

About Anindita
Anindita Basak is working as Big Data Cloud Consultant in Microsoft. Worked in multiple MNCs as Developer & Senior Developer on Microsoft Azure, Data Platform, IoT & BI , Data Visualization, Data warehousing & ETL & of course in Hadoop platform.She played both as FTE & v- employee in Azure platform teams of Microsoft.Passionate about .NET , Java, Python & Data Science. She is also an active Big Data & Cloud Trainer & would love share her experience in IT Training Industry. She is an author, forum contributor, blogger & technical reviewer of various books on Big Data Hadoop, HDInsight, IoT & Data Science, SQL Server PDW & PowerBI.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: