Ejemplo n.º 1
0
 void Clean(object sender, RoutedEventArgs e)
 {
     if (secondShooter != null)
         secondShooter.Stop();
     if (primaryShooter != null)
         primaryShooter.Stop();
     primaryDisplayer = null;
     secondDisplayer = null;
 }
Ejemplo n.º 2
0
 private void InitDisplayer()
 {
     primaryDisplayer = new CameraImageDisplayer(new Rectangle())
     {
         InitWidth = 650,
         InitHeight = 400
     };
     finalPicture.Children.Add(primaryDisplayer);
     Rectangle p = new Rectangle();
     secondDisplayer = new CameraImageDisplayer(p)
     {
         InitWidth = 160,
         InitHeight = 120,
         Type = CameraType.FrontFacing,
         TopLeft = new Point(0, 0),
         BottomRight = new Point(primaryDisplayer.InitWidth, primaryDisplayer.InitWidth * 0.75)
     };
     finalPicture.Children.Add(secondDisplayer);
 }