Visual Basic (Declaration) | |
---|---|
<DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="MagicWandRasterRegionData")> Public Class MagicWandRasterRegionData Inherits RasterRegionData |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="MagicWandRasterRegionData")] public class MagicWandRasterRegionData : RasterRegionData |
C++/CLI | |
---|---|
[DataContractAttribute(Namespace="http://Leadtools.Services.Raster.DataContracts/2009/01", Name="MagicWandRasterRegionData")] public ref class MagicWandRasterRegionData : public RasterRegionData |
Visual Basic | Copy Code |
---|---|
Public Sub MagicWandRasterRegionDataExample() |
C# | Copy Code |
---|---|
public void MagicWandRasterRegionDataExample() |
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.
System.Object
Leadtools.Services.Raster.DataContracts.RasterRegionData
Leadtools.Services.Raster.DataContracts.MagicWandRasterRegionData
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family