Windows Phone 7 Mango ‘PhotoFun’ Application
October 7, 2011 Leave a comment
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
protected overridevoid OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
CameraButtons.ShutterKeyPressed -= camera_ButtonFullPress;
CameraButtons.ShutterKeyHalfPressed -= camera_ButtonHalfPress;
pumpEffectedFrames = false;
camera = null;