Exemple #1
0
        private void OverlayCamera()
        {
            overlayCamera = new Tizen.Multimedia.Camera(Tizen.Multimedia.CameraDevice.Front);
            // default display type is Window (Overlay mode)
            overlayCameraView = new CameraView(overlayCamera.Handle);
            overlayCameraView.PositionUsesPivotPoint = true;
            overlayCameraView.ParentOrigin           = ParentOrigin.TopLeft;
            overlayCameraView.PivotPoint             = PivotPoint.TopLeft;
            overlayCameraView.Size     = new Size(300, 400);
            overlayCameraView.Position = new Position(100, 200);

            overlayCamera.StartPreview();

            win.Add(overlayCameraView);
        }
Exemple #2
0
        private void ImageCamera()
        {
            imageCamera = new Tizen.Multimedia.Camera(Tizen.Multimedia.CameraDevice.Front);
            // default display type is Window (Overlay mode)
            imageCameraView = new CameraView(imageCamera.Handle, CameraView.DisplayType.Image);
            imageCameraView.PositionUsesPivotPoint = true;
            imageCameraView.ParentOrigin           = ParentOrigin.TopLeft;
            imageCameraView.PivotPoint             = PivotPoint.TopLeft;
            imageCameraView.Position = new Position(0, 400);
            imageCameraView.Size     = new Size(300, 300);

            imageCamera.StartPreview();

            win.Add(imageCameraView);
        }
Exemple #3
0
        private void AddCameraView()
        {
            camera = new Tizen.Multimedia.Camera(Tizen.Multimedia.CameraDevice.Front);

            // default display type is Window (Overlay mode)
            cameraView          = new CameraView(camera.Handle, CameraView.DisplayType.Window);
            cameraView.Size     = new Size(300, 300);
            cameraView.Position = new Position(100, 50);

            if (camera != null && camera.State == Tizen.Multimedia.CameraState.Created)
            {
                camera.StartPreview();
            }
            win.Add(cameraView);
        }