Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
ColorizeGrayCommandData Constructor(RasterColor,Int32)
See Also 
Leadtools.ImageProcessing.Core Namespace > ColorizeGrayCommandData Class > ColorizeGrayCommandData Constructor : ColorizeGrayCommandData Constructor(RasterColor,Int32)




color
Contains the color used for coloring the range of intensities set in Threshold.
threshold
The maximum value of the pixels to be colored using the color parameter. Pixels with a value less than or equal to the value in this parameter will be colored using the Color parameter. If the ColorizeGrayCommandData class object is the last in the GrayColors array, then this value is ignored and the maximum possible value will be used instead.
The maximum value depends on the image bits per pixel. For 8, 12 and 16-bit images the maximum value is 255, 4095 and 65535 respectively. However if you enter a value higher than the maximum, the value will be clipped at the maximum value.
Initializes a new ColorizeGrayCommandData class object with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color As RasterColor, _
   ByVal threshold As Integer _
)
Visual Basic (Usage)Copy Code
Dim color As RasterColor
Dim threshold As Integer
 
Dim instance As ColorizeGrayCommandData(color, threshold)
C# 
public ColorizeGrayCommandData( 
   RasterColor color,
   int threshold
)
Managed Extensions for C++ 
public: ColorizeGrayCommandData( 
   RasterColor color,
   int threshold
)
C++/CLI 
public:
ColorizeGrayCommandData( 
   RasterColor color,
   int threshold
)

Parameters

color
Contains the color used for coloring the range of intensities set in Threshold.
threshold
The maximum value of the pixels to be colored using the color parameter. Pixels with a value less than or equal to the value in this parameter will be colored using the Color parameter. If the ColorizeGrayCommandData class object is the last in the GrayColors array, then this value is ignored and the maximum possible value will be used instead.
The maximum value depends on the image bits per pixel. For 8, 12 and 16-bit images the maximum value is 255, 4095 and 65535 respectively. However if you enter a value higher than the maximum, the value will be clipped at the maximum value.

Example

Requirements

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

See Also