invert liveview
This commit is contained in:
parent
857b06655f
commit
bd2e388fd0
@ -32,6 +32,11 @@ public partial class LiveViewPage : Page
|
|||||||
this._cameraService = cameraService;
|
this._cameraService = cameraService;
|
||||||
this.InitializeComponent();
|
this.InitializeComponent();
|
||||||
this.SetImageAction = img => { this.bgbrush.ImageSource = img; };
|
this.SetImageAction = img => { this.bgbrush.ImageSource = img; };
|
||||||
|
|
||||||
|
// Mirror the LiveView image horizontally
|
||||||
|
ScaleTransform scaleTransform = new ScaleTransform(-1, 1, 0.5, 0.5);
|
||||||
|
this.bgbrush.Transform = scaleTransform;
|
||||||
|
|
||||||
this.LVCanvas.Background = this.bgbrush;
|
this.LVCanvas.Background = this.bgbrush;
|
||||||
cameraService.ConnectCamera();
|
cameraService.ConnectCamera();
|
||||||
cameraService._mainCamera.LiveViewUpdated += this.MainCamera_OnLiveViewUpdated;
|
cameraService._mainCamera.LiveViewUpdated += this.MainCamera_OnLiveViewUpdated;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user