Device (device) camera (hardware shutter, autofocus, real-time modification capture video)
Introduced
Unique device for Windows Phone 7.5 (SDK 7.1)
Hardware shutter
Autofocus, autofocus to specified point
Real-time modification of captured video frames
Example
1, demonstrate how to respond to the hardware shutter
Hardwareshutter.xaml
<phone:phoneapplicationpage x:class= "Demo.Device.Camera.HardwareShutter" 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= "Portrait" orientation= "Portrait" mc:ignorable= "D" d:designheight= "768" d:designwidth= "The Shell:SystemTray.IsVis" ible= "True" > <grid x:name= "layoutroot" background= "Transparent" > <stackpanel orientation= "Ve Rtical "> <canvas width=" height= "<videobrush" > <Canvas.Background> x:name= "VideoBrush" >
<VideoBrush.RelativeTransform> <!--the captured image is coming up--> <rotatetransform centerx= "0.5" centery= "0.5" angle=/> "</videobrus"
H.relativetransform> </VideoBrush> </Canvas.Background>
</Canvas> <textblock name= "lblmsg" text= "To view the demo effect (half press, full press, release) by the hardware shutter textwrapping=" Wrap </StackPanel> </Grid> </phone:PhoneApplicationPage>