Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
GrayScaleCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : GrayScaleCommand Class



Converts an RasterImage to a grayscale image.

Syntax

Visual Basic (Declaration) 
Public Class GrayScaleCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As GrayScaleCommand
C# 
public class GrayScaleCommand : RasterCommand, IRasterCommand  
C++/CLI 
public ref class GrayScaleCommand : public RasterCommand, IRasterCommand  

Remarks

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.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.GrayScaleCommand

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also