←Select platform

ImageViewerSpyGlassShape Enumeration

Summary

Specifies the shape of the ImageViewerSpyGlassInteractiveMode spy glass.

Syntax
C#
C++/CLI
public enum ImageViewerSpyGlassShape 
public enum class ImageViewerSpyGlassShape sealed 
Members

0

None

(0) None

1

Rectangle

(1) The glass is a rectangle.

2

RoundRectangle

(2) The glass is round rectangle.

3

Ellipse

(3) The glass is an ellipse.

Remarks

Used as the value for the ImageViewerSpyGlassInteractiveMode.Shape property.

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(); 
Requirements

Target Platforms

See Also

Reference

Leadtools.Controls Namespace

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.