Leadtools.Services.Raster.DataContracts Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MagicWandRasterRegionData Constructor(LeadPoint,String,String)
See Also 
Leadtools.Services.Raster.DataContracts Namespace > MagicWandRasterRegionData Class > MagicWandRasterRegionData Constructor : MagicWandRasterRegionData Constructor(LeadPoint,String,String)



location
A point in an image with the color will be used to set the region.
lowerToleranceColor
Lower tolerance values that set the lower stopping point for the region.
upperToleranceColor
Upper tolerance values that set the upper stopping point for the region.
Sets a region based on the color found at a location in the image.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal location As LeadPoint, _
   ByVal lowerToleranceColor As String, _
   ByVal upperToleranceColor As String _
)
Visual Basic (Usage)Copy Code
Dim location As LeadPoint
Dim lowerToleranceColor As String
Dim upperToleranceColor As String
 
Dim instance As MagicWandRasterRegionData(location, lowerToleranceColor, upperToleranceColor)
C# 
public MagicWandRasterRegionData( 
   LeadPoint location,
   string lowerToleranceColor,
   string upperToleranceColor
)
C++/CLI 
public:
MagicWandRasterRegionData( 
   LeadPoint location,
   String^ lowerToleranceColor,
   String^ upperToleranceColor
)

Parameters

location
A point in an image with the color will be used to set the region.
lowerToleranceColor
Lower tolerance values that set the lower stopping point for the region.
upperToleranceColor
Upper tolerance values that set the upper stopping point for the region.

Remarks

For gray scale bitmaps:

The minimum channel tolerance value of lowerToleranceColor will be used to set the lower stopping point, and the value of upperToleranceColor will be used to set the upper stopping point. For example, if the value of the pixel at (x, y) is (125, 125, 125) and lowerToleranceColor is (20,30,15), the smallest value of the triplet (15) will be used to create the lower stopping point of (110,110,110). If upperToleranceColor is (10,25,20), the smallest value of that triplet (10) will be used to create the upper stopping point of (135,135,135).

To update an existing region, specify how the new region is to be combined with the existing one using the RasterRegionData.CombineMode parameter. For more information, refer to RasterRegionCombineMode.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Applications developed with LEADTOOLS WCF components require runtime licenses. Server licensing is required for applications on a server. For more information, refer to: Imaging Pro/Document/Medical Features