Класс ImageViewerUndoMonitor
Монитор отмены, который отслеживает изменения в объекте
ImageViewer.
Вот C#/VB.NET код, который демонстрирует, как отслеживать изменения визуальных инструментов в изображениях.
''' <summary>
''' Creates the undo monitor for image viewer.
''' </summary>
''' <param name="undoManager">The undo manager.</param>
''' <param name="imageViewer">The image viewer.</param>
Public Shared Function CreateUndoMonitorForImageViewer(undoManager As Vintasoft.Imaging.Undo.UndoManager, imageViewer As Vintasoft.Imaging.UI.ImageViewer) As Vintasoft.Imaging.Undo.ImageViewerUndoMonitor
' create the undo monitor for image viewer
Dim undoMonitor As New Vintasoft.Imaging.Undo.ImageViewerUndoMonitor(undoManager, imageViewer)
' returns the undo monitor for image viewer
Return undoMonitor
End Function
/// <summary>
/// Creates the undo monitor for image viewer.
/// </summary>
/// <param name="undoManager">The undo manager.</param>
/// <param name="imageViewer">The image viewer.</param>
public static Vintasoft.Imaging.Undo.ImageViewerUndoMonitor CreateUndoMonitorForImageViewer(
Vintasoft.Imaging.Undo.UndoManager undoManager,
Vintasoft.Imaging.UI.ImageViewer imageViewer)
{
// create the undo monitor for image viewer
Vintasoft.Imaging.Undo.ImageViewerUndoMonitor undoMonitor =
new Vintasoft.Imaging.Undo.ImageViewerUndoMonitor(undoManager, imageViewer);
// returns the undo monitor for image viewer
return undoMonitor;
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5