Occurs when the spy glass is working.
public event EventHandler<ImageViewerSpyGlassDrawImageEventArgs> DrawImage
public:
event EventHandler<Leadtools::Controls::ImageViewerSpyGlassDrawImageEventArgs^>^ DrawImage
ImageViewerSpyGlassInteractiveMode will fire this event while working. It is up to the implementers and listeners to draw the effect on the context.
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
_imageViewer.InteractiveModes.BeginUpdate();
var spyGlass = new ImageViewerSpyGlassInteractiveMode();
spyGlass.BackgroundBrush = new SolidBrush(Color.FromArgb(128, Color.Yellow));
spyGlass.BackgroundBrush = Brushes.Yellow;
spyGlass.AutoItemMode = ImageViewerAutoItemMode.AutoSet;
spyGlass.EnsureVisible = false;
_imageViewer.InteractiveModes.Add(spyGlass);
_imageViewer.InteractiveModes.EndUpdate();
Parameter | Type | Description |
---|---|---|
sender | object | The source of the event. |
e | ImageViewerSpyGlassDrawImageEventArgs | The event data. |
ImageViewerSpyGlassInteractiveMode Class
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document