Skip to content

Commit

Permalink
Fixing LUT
Browse files Browse the repository at this point in the history
  • Loading branch information
Rambalac committed Apr 6, 2017
1 parent 79626c5 commit b6709dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions GMaster/Views/CameraViewControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void Dispose()
private async void Camera_LiveViewUpdated(Stream stream)
{
stream.Position = 0;
liveViewBitmap = await CanvasBitmap.LoadAsync(LiveView, stream.AsRandomAccessStream());
bitmap = await CanvasBitmap.LoadAsync(LiveView, stream.AsRandomAccessStream());
LiveView.Invalidate();
}

Expand Down Expand Up @@ -163,7 +163,6 @@ private void LiveView_OnDraw(CanvasControl sender, CanvasDrawEventArgs args)
ICanvasImage content = bitmap;
if (lutEffect != null)
{
content = lutEffect.GenerateEffect(content);
}

args.DrawingSession.DrawImage(content, imageRect, new Rect(0, 0, iW, iH), 1.0f, CanvasImageInterpolation.NearestNeighbor);
Expand Down Expand Up @@ -217,6 +216,10 @@ private async Task CameraSet()
{
var lutName = Model.SelectedCamera.Settings.LutName;
var lut = await Model.SelectedCamera.Model.LoadLut(lutName);
if (lut == null)
{
return;
}

if (lut.BlueNum > 0)
{
Expand Down

0 comments on commit b6709dc

Please sign in to comment.