←Select platform

MagicWandRasterRegionData Constructor(LeadPoint,string,string)

Summary

Sets a region based on the color found at a location in the image.

Syntax

C#
VB
C++
  
Public Function New( _ 
   ByVal location As Leadtools.LeadPoint, _ 
   ByVal lowerToleranceColor As String, _ 
   ByVal upperToleranceColor As String _ 
) 
public: 
MagicWandRasterRegionData(  
   Leadtools.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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Raster.DataContracts Assembly