Visual Basic (Declaration) | |
---|---|
Public Class GrayScaleCommand Inherits RasterCommand Implements IRasterCommand |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class GrayScaleCommand : RasterCommand, IRasterCommand |
C++/CLI | |
---|---|
public ref class GrayScaleCommand : public RasterCommand, IRasterCommand |
Converts a 1-, 4-, 8-, 16-, 24-, or 32-bit image to an 8-bit, 12-bit, or 16-bit grayscale image.
When converting to 8-bit grayscale, a lookup table (palette) is used to get the RGB for each input pixel.
When converting to 12-bit or 16-bit grayscale, a lookup table (palette) is not used. The grayscale value corresponding to that RGB triple is used in the destination bitmap.
For more information, refer to Introduction to Image Processing With LEADTOOLS.
System.Object
Leadtools.ImageProcessing.RasterCommand
Leadtools.ImageProcessing.GrayScaleCommand
Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6