Device (equipment) camera (taking photos, recording video)
Introduced
Unique device for Windows Phone 7.5 (SDK 7.1)
Take pictures with a webcam
Recording video with a webcam
Example
1, demo How to use the camera to take photos
Imagedemo.xaml
<phone:phoneapplicationpage x:class= "Demo.Device.Camera.ImageDemo" xmlns= "Http://schemas.microsoft.com/winfx /2006/xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:phone=" Clr-namespace: Microsoft.phone.controls;assembly=microsoft.phone "Xmlns:shell=" clr-namespace:microsoft.phone.shell;assembly= Microsoft.phone "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 "xmlns:mc=" http:// schemas.openxmlformats.org/markup-compatibility/2006 "fontfamily=" {StaticResource PhoneFontFamilyNormal} "FontSiz E= ' {StaticResource phonefontsizenormal} ' foreground= ' {StaticResource Phoneforegroundbrush} ' SupportedOrientations= "Landscape" orientation= "Landscape" mc:ignorable= "D" d:designheight= "a" d:designwidth= "" "Shell:SystemTray.IsV" isible= "False" > <grid x:name= "layoutroot" background= "Transparent" > <stackpanel orientation= "Vertical" > <stackpanel orientation= "Horizontal "> <canvas width=" height= "" "> <Canvas.Background>
<videobrush x:name= "VideoBrush"/> </Canvas.Background> </Canvas> <!--show pictures taken--> <image name= "imgcapture" width= "320" height= "margin= 0 0 0"/> <!--shows thumbnails of photographed images--> <image name= "Imgcaptu Rethumbnail "width=" "height=" margin= "0 0 0"/> </StackPanel> <stackpan El orientation= "Horizontal" > <button x:name= "btnshutter" content= "shutter" click= "Btnshutter_click"/>
; <button x:name= "Btnflash" content= "Flash" click= "Btnflash_click"/> <button "x:name=" Content= "Resolution" click= "Btnresolution_click"/> </StackPanel> <textblock name= "LbL MSG "/> </StackPanel> </Grid> </phone:PhoneApplicationPage>