private void ApplyWatermarkButton_Click(object sender, RoutedEventArgs e) { ActionStack.Did(ListFrames); var dpi = ListFrames[0].ImageLocation.DpiOf(); var scaledSize = ListFrames[0].ImageLocation.ScaledSize(); var render = WatermarkOverlayGrid.GetRender(dpi, scaledSize); Cursor = Cursors.AppStarting; _overlayFramesDel = Overlay; _overlayFramesDel.BeginInvoke(render, dpi, OverlayCallback, null); ClosePanel(); }
private void ApplyFreeDrawingButton_Click(object sender, RoutedEventArgs e) { ActionStack.Did(ListFrames); var dpi = ListFrames[0].ImageLocation.DpiOf(); var scaledSize = ListFrames[0].ImageLocation.ScaledSize(); var render = FreeDrawingInkCanvas.GetRender(dpi, scaledSize); Cursor = Cursors.AppStarting; FreeDrawingInkCanvas.Strokes.Clear(); _overlayFramesDel = Overlay; _overlayFramesDel.BeginInvoke(render, dpi, OverlayCallback, null); ClosePanel(); }