forked from amkovkov/GranuSightSoftware2
fix: GSS2.Test Vulakn render image buffer rotation
This commit is contained in:
@@ -30,7 +30,7 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
_logger.LogInformation("Initialized");
|
||||
}
|
||||
|
||||
public async Task<(LibCameraSharp.FrameBuffer, LibCameraSharp.StreamConfiguration)?> CaptureImage()
|
||||
public async Task<(LibCameraSharp.FrameBuffer, LibCameraSharp.StreamConfiguration)?> CaptureImage(int bufferId)
|
||||
{
|
||||
_logger.LogInformation("Capture image");
|
||||
_lightsService.CpuLoad(0.5, 1, System.Drawing.Color.Aqua);
|
||||
@@ -38,9 +38,9 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
(LibCameraSharp.FrameBuffer, LibCameraSharp.StreamConfiguration)? result = null;
|
||||
try
|
||||
{
|
||||
_illuminatorService.SetIntensity(0.01, 0, 0);
|
||||
_illuminatorService.TurnOn();
|
||||
result = await _cameraService.CaptureViewFinderBuffer(CancellationToken.None);
|
||||
// _illuminatorService.SetIntensity(0.01, 0, 0);
|
||||
// _illuminatorService.TurnOn();
|
||||
result = await _cameraService.CaptureViewFinderBuffer(bufferId, CancellationToken.None);
|
||||
_lightsService.Flash(0.5, 2, System.Drawing.Color.Green);
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -50,7 +50,7 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
}
|
||||
finally
|
||||
{
|
||||
_illuminatorService.TurnOff();
|
||||
// _illuminatorService.TurnOff();
|
||||
}
|
||||
|
||||
var snowfallTimer = new System.Timers.Timer(3000);
|
||||
|
||||
Reference in New Issue
Block a user