LEADTOOLS WCF (Leadtools.Services.Raster.DataContracts assembly)
LEAD Technologies, Inc

MagicWandRasterRegionData Constructor(LeadPoint,String,String)






A point in an image with the color will be used to set the region.
Lower tolerance values that set the lower stopping point for the region.
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
public MagicWandRasterRegionData( 
   LeadPoint location,
   string lowerToleranceColor,
   string upperToleranceColor
)
'Declaration
 
Public Function New( _
   ByVal location As LeadPoint, _
   ByVal lowerToleranceColor As String, _
   ByVal upperToleranceColor As String _
)
'Usage
 
Dim location As LeadPoint
Dim lowerToleranceColor As String
Dim upperToleranceColor As String
 
Dim instance As New MagicWandRasterRegionData(location, lowerToleranceColor, upperToleranceColor)
public MagicWandRasterRegionData( 
   LeadPoint location,
   string lowerToleranceColor,
   string upperToleranceColor
)
function MagicWandRasterRegionData( 
   location ,
   lowerToleranceColor ,
   upperToleranceColor 
)
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: 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

MagicWandRasterRegionData Class
MagicWandRasterRegionData Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

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

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