Class CameraView
Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
CameraView is a view for camera preview.
public class CameraView : View, INotifyPropertyChanged, IDisposable
- Inheritance
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
View SourceCameraView(IntPtr, DisplayType)
Creates an initialized CameraView.
Declaration
public CameraView(IntPtr handle, CameraView.DisplayType type = DisplayType.Window)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | Multimedia Camera handle |
CameraView.DisplayType | type | DisplayType |
Methods
View SourceUpdate()
Called when the camera view needs to be updated if the camera setting is changed.
Declaration
public void Update()
Examples
camera = new Tizen.Multimedia.Camera(Tizen.Multimedia.CameraDevice.Front);
cameraView = new CameraView(overlayCamera.Handle);
cameraView.Size = new Size(300, 400);
camera.DisplaySettings.Rotation = Tizen.Multimedia.Rotation.Rotate90;
cameraView.Update();
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable