Skip to content

Commit

Permalink
Remove resize for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 24, 2021
1 parent 998728a commit 20c45b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Desktop.Core/Services/ScreenCaster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ await viewer.SendScreenCapture(new CaptureFrame()
}

using var clone = currentFrame.Clone(diffArea, currentFrame.PixelFormat);
var resizeW = diffArea.Width * currentQuality / 100;
var resizeH = diffArea.Height * currentQuality / 100;
using var resized = new Bitmap(clone, new Size(resizeW, resizeH));
encodedImageBytes = ImageUtils.EncodeJpeg(resized, currentQuality);
//var resizeW = diffArea.Width * currentQuality / _maxQuality;
//var resizeH = diffArea.Height * currentQuality / _maxQuality;
//using var resized = new Bitmap(clone, new Size(resizeW, resizeH));
encodedImageBytes = ImageUtils.EncodeJpeg(clone, currentQuality);
}

viewer.Capturer.CaptureFullscreen = false;
Expand Down

0 comments on commit 20c45b8

Please sign in to comment.