LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly)
LEAD Technologies, Inc

ColorizeGrayCommandData Constructor(RasterColor,Int32)






Contains the color used for coloring the range of intensities set in 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. .NET support WinRT support Silverlight support
Syntax
public ColorizeGrayCommandData( 
   RasterColor color,
   int threshold
)
'Declaration
 
Public Function New( _
   ByVal color As RasterColor, _
   ByVal threshold As Integer _
)
'Usage
 
Dim color As RasterColor
Dim threshold As Integer
 
Dim instance As New ColorizeGrayCommandData(color, threshold)
public ColorizeGrayCommandData( 
   RasterColor color,
   int threshold
)
function ColorizeGrayCommandData( 
   color ,
   threshold 
)
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
Refer to ColorizeGrayCommand(ColorizeGrayCommandData[])
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ColorizeGrayCommandData Class
ColorizeGrayCommandData Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.