LEADTOOLS WinRT(Leadtools.Controls)
LEAD Technologies, Inc

ImageViewerSpyGlassShape Enumeration

ExampleExample 

Indicates the shape of the ImageViewerSpyGlassInteractiveMode spy glass. WinRT support
Syntax
public enum ImageViewerSpyGlassShape : System.Enum 
Leadtools.Controls.ImageViewerSpyGlassShape = function() { };
Leadtools.Controls.ImageViewerSpyGlassShape.prototype = {
LeadtoolsMemberMarker(replace me) };
Members
MemberDescription
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.

Remarks

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

Example
Copy CodeCopy Code  
[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;
}
Requirements

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

See Also

Reference

Leadtools.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.