Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal location As LeadPoint, _ ByVal lowerToleranceColor As String, _ ByVal upperToleranceColor As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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.
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: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family