Lens app trasformare il telefono in una fotocamera
-
Upload
microsoft-mobile-developer -
Category
Technology
-
view
494 -
download
1
description
Transcript of Lens app trasformare il telefono in una fotocamera
![Page 1: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/1.jpg)
LENS APP: TRASFORMARE IL TELEFONO IN UNA FOTOCAMERA
Marco Dal Pino
Nokia Developer Champion
Microsoft MVP – Client Development
Senior Mobile Dev @ DPCons
ITALIAN WEBINAR
![Page 2: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/2.jpg)
Nokia Internal Use Only
AGENDA
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• WP e App fotografiche • Lens App: cosa sono • Integrazione • Nuove risoluzioni • Imaging SDK
![Page 3: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/3.jpg)
Nokia Internal Use Only
WP E APP FOTOGRAFICHE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 4: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/4.jpg)
Nokia Internal Use Only
WP E APP
FOTOGRAFICHE Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 5: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/5.jpg)
Nokia Internal Use Only
LENS APP: COSA SONO
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 6: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/6.jpg)
Nokia Internal Use Only
COSA SONO
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• App selezionabili come stand alone o dal viewfinder della camera
• Non solo scatto, ma anche «Rich_Media_Lenses» per vedere o editare le foto
• Offrire esperienza di utiizzo della fotocamera per altri servizi (es. lettura barcode)
![Page 7: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/7.jpg)
Nokia Internal Use Only
LENS APP:
COSA SONO Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 8: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/8.jpg)
Nokia Internal Use Only
INTEGRAZIONE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 9: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/9.jpg)
Nokia Internal Use Only
INTEGRAZIONE
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
• Le applicazioni fotografiche possono essere integrate con il sistema operativo
• L’utente può interagire con l’applicazione direttamente dall’hub Photos
• Viene attivata con una dichiarazione nel file di manifest
• L’app viene aperta con un Uri speciale
![Page 10: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/10.jpg)
Nokia Internal Use Only
• L’applicazione viene aggiunta nella sezione Apps dell’hub Photos
• Al tap, l’applicazione viene aperta regolarmente
• E’ semplicemente una scorciatoia
APPS
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 11: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/11.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 12: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/12.jpg)
Nokia Internal Use Only
<Extension ExtensionName="Photos_Extra_Hub" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
MANIFEST
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 13: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/13.jpg)
Nokia Internal Use Only
• L’utente può importare una foto della libreria direttamente nell’applicazione
• L’applicazione riceve un GUID che rappresenta la foto scelta
• La classe MediaLibrary permette di recuperare l’immagine tramite GUID
SHARE PICKER
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 14: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/14.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 15: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/15.jpg)
Nokia Internal Use Only
MANIFEST & URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Extra_Share" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=ShareContent&FileId=%7BA3D54E2D-7977-4E2B-B92D-3EB126E5D168%7D
![Page 16: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/16.jpg)
Nokia Internal Use Only
• «Firma» che viene applicata alle foto scattate e salvate in Camera Roll con un’applicazione di terze parti
• Viene visualizzata nell’hub Photos e come opzione nell’app bar
RICH MEDIA APP
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 17: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/17.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 18: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/18.jpg)
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Rich_Media_Edit" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=RichMediaEdit&token=%7Bed8b7de8-6cf9-454e-afe4-abb60ef75160%7D
![Page 19: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/19.jpg)
Nokia Internal Use Only
• Pensata per le applicazioni che supportano la modifica delle foto
• Funzionamento analogo allo Share Picker
EDIT
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 20: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/20.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 21: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/21.jpg)
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Photos_Extra_Image_Editor" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5632}" TaskID="_default" />
/MainPage.xaml?Action=EditPhotoContent&FileId=%7Bea74a960-3829-4007-8859-cd065654fb
![Page 22: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/22.jpg)
Nokia Internal Use Only
• L’applicazione può essere lanciata dall’app nativa della fotocamera
• In questo modo, l’utente può continuare a sfruttare il tasto hardware dedicato
LENS APP
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 23: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/23.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 24: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/24.jpg)
Nokia Internal Use Only
MANIFEST AND URI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
<Extension ExtensionName="Camera_Capture_App" ConsumerID="{5B04B775-356B-4AA0-AAF8-6491FFEA5631}" TaskID="_default" />
/MainPage.xaml?Action=ViewfinderLaunch
![Page 25: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/25.jpg)
Nokia Internal Use Only
INTEGRAZIONE Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 26: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/26.jpg)
Nokia Internal Use Only
NUOVE RISOLUZIONI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 27: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/27.jpg)
Nokia Internal Use Only
• 1020, 1520, 1320
• Microsoft.Phone.Info.DeviceStatus.DeviceName
• Identificato come RM-xxx
• Risoluzione da forzare:
• Per il 1020 7712 x 4352
• Per il 1520 5376 x 3024
NUOVE RISOLUZIONI
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 28: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/28.jpg)
Nokia Internal Use Only
XAMLESSENTIAL
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 29: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/29.jpg)
Nokia Internal Use Only
NUOVE RISOLUZIONI Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 30: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/30.jpg)
Nokia Internal Use Only
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 31: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/31.jpg)
Nokia Internal Use Only
• Libreria nativa di Nokia per Windows Phone 8 (qualsiasi device, non solo Lumia)
• http://s.qmatteoq.com/ImagingSDK
• Permette di applicare filtri alle immagini acquisiti o in real time
• Funzionalità di crop, resize, undo
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 32: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/32.jpg)
Nokia Internal Use Only
• Essendo una libreria nativa, non può essere compilata in modalità «Any CPU».
• Occorre specificare l’architettura:
• ARM per deploy sul device e sullo Store
• X86 per deploy sull’emulatore
IMAGING SDK
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 33: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/33.jpg)
Nokia Internal Use Only
IMAGING SDK Demo
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
![Page 34: Lens app trasformare il telefono in una fotocamera](https://reader033.fdocuments.us/reader033/viewer/2022052822/554e0448b4c90597278b4de4/html5/thumbnails/34.jpg)
Nokia Internal Use Only
12/4/2013 © 2012 Nokia. All rights reserved. © 2012 Microsoft. All rights reserved.
Grazie!
@marcodalpino
http://mobileprog.net