invert liveview

This commit is contained in:
iTob 2026-02-27 15:52:10 +01:00
parent 857b06655f
commit bd2e388fd0

View File

@ -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;