Visual Basic (Declaration) | |
---|---|
Public Sub AddColorRgbRangeToRegion( _ ByVal lowerColor As RasterColor, _ ByVal upperColor As RasterColor, _ ByVal combineMode As RasterRegionCombineMode _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void AddColorRgbRangeToRegion( RasterColor lowerColor, RasterColor upperColor, RasterRegionCombineMode combineMode ) |
Managed Extensions for C++ | |
---|---|
public: void AddColorRgbRangeToRegion( RasterColor lowerColor, RasterColor upperColor, RasterRegionCombineMode combineMode ) |
C++/CLI | |
---|---|
public: void AddColorRgbRangeToRegion( RasterColor lowerColor, RasterColor upperColor, RasterRegionCombineMode combineMode ) |
Parameters
- lowerColor
- Specifies the minimum (inclusive) R, G and B values. A pixel must have R,G, and B all greater than or equal to lowerColor and less than or equal to upperColor to be included in the region.
- upperColor
- Specifies the maximum (inclusive) R, G and B values. A pixel must have R,G, and B all greater than or equal to lowerColor and less than or equal to upperColor to be included in the region.
- combineMode
- The action to take regarding the existing image region, if one is defined.
This method uses the RGB color model to set a region based on a color range.
To be added to the region a color must fall in the range lowerColor..upperColor. To set a region for all pure red, specify lowerColor and upperColor as follows:
lowerColor RGB(1,0,0)
upperColor RGB(255,0,0)
Note that this would fail to include many colors that look red to the eye (like RGB(255,4,4)).
This method supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical Imaging editions.
To update an existing region, you specify how the new region is to be combined with the existing one using the combineMode parameter. For more information, refer to RasterRegionCombineMode.
For more information, refer to Creating a Region.
For more information, refer to Saving A Region.
For more information, refer to Working with the Existing Region.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family