Leadtools.Services.Raster.DataContracts Namespace > MagicWandRasterRegionData Class > MagicWandRasterRegionData Constructor : MagicWandRasterRegionData Constructor(LeadPoint,String,String) |
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 )
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.
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