Visual Basic (Declaration) | |
---|---|
Public Class GrayscaleCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class GrayscaleCommand : RasterCommand, IRasterCommand |
Managed Extensions for C++ | |
---|---|
public __gc class GrayscaleCommand : public RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class GrayscaleCommand : public RasterCommand, IRasterCommand |
Support for 12 and 16-bit grayscale images is available only in the Document/Medical Imaging editions.
The resulting image can be an 8-bit, 12-bit, or 16-bit grayscale image. Once the function is complete, the RasterImage.GrayscaleMode property will indicate the type of grayscale image.
When converting to 12-bit or 16-bit grayscale, the RasterImage.GetLookupTable is not used. When converting to 8-bit grayscale, the RasterImage.GetLookupTable is used to get the RGB for each input pixel. The grayscale value corresponding to that RGB triple is used in the destination image.
This method does not support signed images.
For more information, refer to Processing an Image.
For more information, refer to Grayscale Images.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.GrayscaleCommand
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