public enum ImageViewerSpyGlassShape : System.Enum
Leadtools.Controls.ImageViewerSpyGlassShape = function() { }; Leadtools.Controls.ImageViewerSpyGlassShape.prototype = {
LeadtoolsMemberMarker(replace me) };
Member | Description |
---|---|
Ellipse | (3)The glass is an ellipse. |
None | (0)None |
Rectangle | (1)The glass is a rectangle. |
RoundRectangle | (2)The glass is a round rectangle. |
Used as the value for the ImageViewerSpyGlassInteractiveMode.Shape property.
The following properties are used to draw the shape (excluding None of course):
Member | Description |
---|---|
ImageViewerSpyGlassInteractiveMode.Size |
The size of the shape. |
ImageViewerSpyGlassInteractiveMode.BackgroundColor |
The color used to fill the background of the shape |
ImageViewerSpyGlassInteractiveMode.BorderColor |
The color used to stroke the border of the shape |
ImageViewerSpyGlassInteractiveMode.BorderThickness |
The thickness of the border |
ImageViewerSpyGlassInteractiveMode.RoundRectangleRadius |
The arc size of the rounded corners if the shape is ImageViewerSpyGlassShape.RoundRectangle |
[TestMethod] public void ImageViewerSpyGlassInteractiveModeExample() { // Set spy glass as the default interactive mode ImageViewerSpyGlassInteractiveMode spyglassMode = new ImageViewerSpyGlassInteractiveMode(); // Customize it spyglassMode.BorderColor = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 255, 0, 0)); spyglassMode.BackgroundColor = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 0, 0, 255)); spyglassMode.BorderThickness = 2; spyglassMode.Shape = ImageViewerSpyGlassShape.RoundRectangle; spyglassMode.Crosshair = ImageViewerSpyGlassCrosshair.Fine; spyglassMode.Size = new Size(100, 100); _viewer.DefaultInteractiveMode = spyglassMode; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2