LUMIA APP LABS #4CREATE STUNNINGIMAGING APPSBerthier LemieuxTechnology Wizard
TYPICAL CAMERA USE CASES.                                                WP7.5               WP8   IMAGE PICKER           ...
IMAGE PICKERKEY APIS:    Microsoft.Phone.Tasks.PhotoChooserTask    Microsoft.Phone.Tasks.CameraCaptureTaskExample code:htt...
IMAGE PICKER   private void CameraRoll_Click(object sender, RoutedEventArgs e)           {               PhotoChooserTask ...
AR VIEWFINDERKEY API:    Microsoft.Devices.PhotoCamera    Microsoft.Devices.Sensors.Motion    System.Windows.Media.VideoBr...
DISPLAY THE CAMERA FRAMES   <Grid x:Name="LayoutRoot" Background="Transparent">          <Rectangle Width="640" Height="48...
YAW                                         ROLL                                         PITCH                            ...
AR VIEWFINDER      motion = new Motion();      motion.TimeBetweenUpdates = TimeSpan.FromMilliseconds(20);      motion.Curr...
PRO-CAMERA                                                         WP8KEY API:     Windows.Phone.Media.Capture.PhotoCaptur...
Device                    Nokia Lumia 820                                             Nokia Lumia 920                     ...
WP8Windows.Foundation.Size resolution = new Windows.Foundation.Size(640, 480);camera = await PhotoCaptureDevice.OpenAsync(...
WP8FILTERSKEY TECHNOLOGIES:    DirectX    ARM Neon intrinsicEXAMPLE CODE:http://tinyurl.com/cqc79n4http://tinyurl.com/cuvo...
HOOKINGINTO THEPLATFORM   © 2012 Nokia. All rights reserved.       12/5/2012   © 2012 Microsoft. All rights reserved.
WP8 LENSES                                                                      WP8Documentation:http://tinyurl.com/cgcfaf...
HOOKING INTO PHOTOS HUB                        SHARE PICKER                        RICH MEDIA APPS                        ...
Thank you!© 2012 Nokia. All rights reserved.           12/5/2012© 2012 Microsoft. All rights reserved.
Upcoming SlideShare
Loading in …5
×

LUMIA APP LABS: CREATE STUNNING IMAGING APPS FOR LUMIA PHONES

3,537 views
3,467 views

Published on

The Nokia Lumia 920 with Windows Phone 8 is setting the standard in smartphone-imaging technology. In these webinar slides, you’ll learn about creating stunning imaging apps that use the advancements in the Lumia 920 and the potential of the new Microsoft Windows Phone 8. You’ll learn how to capture superb images and video, control ISO and other parameters, perform multiframe image capture, get direct access to sensor data, and apply special effects. The Windows Phone 8 native camera app includes a feature called ‘lenses’ that makes it easy for users to apply the effects produced by your apps. The presentation explains how you make your apps part of this seamless user experience.

Published in: Technology
1 Comment
1 Like
Statistics
Notes
No Downloads
Views
Total views
3,537
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
322
Comments
1
Likes
1
Embeds 0
No embeds

No notes for slide

LUMIA APP LABS: CREATE STUNNING IMAGING APPS FOR LUMIA PHONES

  1. 1. LUMIA APP LABS #4CREATE STUNNINGIMAGING APPSBerthier LemieuxTechnology Wizard
  2. 2. TYPICAL CAMERA USE CASES. WP7.5 WP8 IMAGE PICKER X X AUGMENTED REALITY VIEWFINDER X X PRO-CAMERA X FILTERS X © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  3. 3. IMAGE PICKERKEY APIS: Microsoft.Phone.Tasks.PhotoChooserTask Microsoft.Phone.Tasks.CameraCaptureTaskExample code:http://tinyurl.com/cqlezbn © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  4. 4. IMAGE PICKER private void CameraRoll_Click(object sender, RoutedEventArgs e) { PhotoChooserTask objPhotoChooser = new PhotoChooserTask(); objPhotoChooser.Completed += objPhotoChooser_Completed; objPhotoChooser.ShowCamera = true; objPhotoChooser.Show(); } void objPhotoChooser_Completed(object sender, PhotoResult e) { switch (e.TaskResult) { case TaskResult.OK: PickedImage.Source = new BitmapImage(new Uri(e.OriginalFileName)); break; ... © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  5. 5. AR VIEWFINDERKEY API: Microsoft.Devices.PhotoCamera Microsoft.Devices.Sensors.Motion System.Windows.Media.VideoBrush Example code: http://tinyurl.com/c3sdyqa © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  6. 6. DISPLAY THE CAMERA FRAMES <Grid x:Name="LayoutRoot" Background="Transparent"> <Rectangle Width="640" Height="480" Canvas.ZIndex="1"> <Rectangle.Fill> <VideoBrush x:Name="viewfinderBrush" /> </Rectangle.Fill> </Rectangle> </Grid> cam = new Microsoft.Devices.PhotoCamera(); viewfinderBrush.SetSource(cam); © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  7. 7. YAW ROLL PITCH See also Petzold: http://tinyurl.com/cgydz3u© 2012 Nokia. All rights reserved. 12/5/2012© 2012 Microsoft. All rights reserved.
  8. 8. AR VIEWFINDER motion = new Motion(); motion.TimeBetweenUpdates = TimeSpan.FromMilliseconds(20); motion.CurrentValueChanged += motion_CurrentValueChanged; motion.start(); ... private void CurrentValueChanged(MotionReading reading) { // Phone has moved, update the overlays on the screen according to // reading.Attitude.RotationMatrix © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  9. 9. PRO-CAMERA WP8KEY API: Windows.Phone.Media.Capture.PhotoCaptureDevice Windows.Phone.Media.Capture.CameraCaptureSequenceExample code:HTTP://TINYURL.COM/CO79VKM
  10. 10. Device Nokia Lumia 820 Nokia Lumia 920 WP8Sensor Front Back Front BackAutofocus range Infinity Auto, Macro, Normal, Full, Infinity Auto, Macro, Normal, Full, Hyperfocal, Infinity Hyperfocal, InfinityPreview resolution 640x480 800x448, 640x480 1280x720, 1024x768 1280x720, 1024x768Capture resolution 640x480 3264x2448, 3552x2000, 1280x960, 1280x720, 3264x2448, 3552x2000, 2592x1936, 2592x1456, 640x480 2592x1936, 2592x1456, 2048x1536, 640x480 2048x1536, 640x480Exposure compensation -12...12 -12...12 -12...12 -12...12(EV)Exposure time 1...33333 1...500000 1...33333 1...500000(microseconds)Flash mode Off Auto, On, Off Off Auto, On, OffFocus illumination mode Off Auto, On, Off Off Auto, On, OffISO 100...800 100...800 100...800 100...800Manual focus position No Yes, 1000 positions No Yes, 1000 positionsScene mode Auto, Sport, Night, Backlit Auto, Macro, Sport, Auto, Sport, Night, Backlit Auto, Macro, Sport, Night, Night Portrait, Night, Night Portrait, Backlit BacklitWhite balance preset Cloudy, Daylight, Cloudy, Daylight, Cloudy, Daylight, Cloudy, Daylight, Fluorescent, Tungsten Fluorescent, Tungsten Fluorescent, Tungsten Fluorescent, Tungsten © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  11. 11. WP8Windows.Foundation.Size resolution = new Windows.Foundation.Size(640, 480);camera = await PhotoCaptureDevice.OpenAsync(CameraSensorLocation.Back,resolution);viewfinderBrush.SetSource( camera );CameraCaptureSequence sequence = camera.CreateCaptureSequence(1);sequence.FrameAcquired += sequence_FrameAcquired;CameraCaptureFrame frame = sequence.Frames[0];frame.DesiredProperties[KnownCameraPhotoProperties.FlashMode] = FlashState.On;await camera.PrepareCaptureSequenceAsync(sequence);await sequence.StartCaptureAsync(); Open Prepare PhotoCaptureDevice.OpenAsync() PhotoCaptureDevice.PrepareCaptureSequenceAsync() Create CapturePhotoCaptureDevice.CreateCaptureSequence() CameraCaptureSequence.StartCaptureAsync() Specify Process CameraCaptureFrame.DesiredProperties[] CameraCaptureFrame.CaptureStream © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  12. 12. WP8FILTERSKEY TECHNOLOGIES: DirectX ARM Neon intrinsicEXAMPLE CODE:http://tinyurl.com/cqc79n4http://tinyurl.com/cuvosezhttp://tinyurl.com/bsvoyl9 © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  13. 13. HOOKINGINTO THEPLATFORM © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  14. 14. WP8 LENSES WP8Documentation:http://tinyurl.com/cgcfafd © 2012 Nokia. All rights reserved. 12/5/2012 © 2012 Microsoft. All rights reserved.
  15. 15. HOOKING INTO PHOTOS HUB SHARE PICKER RICH MEDIA APPS PHOTO EDIT PICKER Documentation: http://tinyurl.com/cawyy23
  16. 16. Thank you!© 2012 Nokia. All rights reserved. 12/5/2012© 2012 Microsoft. All rights reserved.

×