LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly)
LEAD Technologies, Inc

GeometryFrameType Enumeration






The frame to use when drawing the ImageViewer.Geometry. .NET support Silverlight support
Syntax
'Declaration
 
Public Enum GeometryFrameType 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As GeometryFrameType
public enum GeometryFrameType : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Windows.Controls.GeometryFrameType = function() { };
Leadtools.Windows.Controls.GeometryFrameType.prototype = {
LeadtoolsMemberMarker(replace me) };
public enum class GeometryFrameType : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
Animated

Animated geometry. The control will draw the geometry using the same stroke as in fixed in addition to a storyboard animation that will change the dash of the stroke to create a moving rubber band effect.

Fixed

Fixed geometry. The control will draw the geometry outline using a fixed stroke of thickness equals to 1.

None

No frame. The control will not draw the geometry.

Remarks

The ImageViewer.Geometry property can be used to put any shape on top of this control and frame it to indicate the current region of interest area.

The coordinates of the ImageViewer.Geometry must be in image coordinates, and accordingly, the geometry will be zoomed in and out and scrolled depending on current viewer zoom value and scroll position.

The ImageViewer control does not create a geometry object by itself, however you can set the value of ImageViewer.Geometry to any System.Windows.Media.Geometry object or one of its derived classes (for example, a System.Windows.Media.PathGeometry) to simulate a region of interest. How the coordinates are calculated and what to do with this area is up to you since WPF/Silverlight System.Windows.Media.ImageSource and its derived classes do not use a region of interest.

The RasterImageViewer control is used to view a LEADTOOLS Leadtools.RasterImage object. This object has support for a region of interest that can be used to limit image processing effects to a certain area of the image of example. The Leadtools.RasterImage region is expressed with a Leadtools.RasterRegion object and you can use the RasterRegionConverter.ConvertToGeometry to convert the Leadtools.RasterRegion object to a WPF/Silverlight System.Windows.Media.Geometry object. When the region inside the Leadtools.RasterImage object being used with this RasterImageViewer is changed, the control will automatically creates a new System.Windows.Media.Geometry object and set in the ImageViewer.Geometry property.

In either cases, to draw the geometry of the viewer, you must set the value of the ImageViewer.GeometryFrameType property to GeometryFrameType.Fixed or GeometryFrameType.Animated. This value is set to GeometryFrameType.None by default which instructs the control to not draw the geometry.

Example

For XAML example, refer to ImageViewer.GeometryFrameType.

For C#/VB examples, refer to ImageViewer.GeometryFrameType.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Windows.Controls.GeometryFrameType

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.Windows.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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