←Select platform

DrawImage Event

Summary

Occurs when the spy glass is working.

Syntax
C#
C++/CLI
public event EventHandler<ImageViewerSpyGlassDrawImageEventArgs> DrawImage 
public:  
   event EventHandler<Leadtools::Controls::ImageViewerSpyGlassDrawImageEventArgs^>^ DrawImage 
Remarks

ImageViewerSpyGlassInteractiveMode will fire this event while working. It is up to the implementers and listeners to draw the effect on the context.

Example
C#
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(); 
Event Data
ParameterTypeDescription
senderobjectThe source of the event.
eImageViewerSpyGlassDrawImageEventArgsThe event data.
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.