Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
GrayscaleMode Property
See Also 
Leadtools Namespace > RasterImage Class : GrayscaleMode Property




Determines if this RasterImage is a grayscale image.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property GrayscaleMode As RasterGrayscaleMode
Visual Basic (Usage)Copy Code
Dim instance As RasterImage
Dim value As RasterGrayscaleMode
 
value = instance.GrayscaleMode
C# 
public RasterGrayscaleMode GrayscaleMode {get;}
Managed Extensions for C++ 
public: __property RasterGrayscaleMode get_GrayscaleMode();
C++/CLI 
public:
property RasterGrayscaleMode GrayscaleMode {
   RasterGrayscaleMode get();
}

Return Value

A RasterGrayscaleMode enumeration member to determine if this RasterImage is a grayscale image.

Example

For an example, refer to GrayscaleCommand.

Remarks

Use this property to determine if the data inside this RasterImage object is grayscale before calling methods and properties that rely on grayscale data.

For more information, refer to Grayscale Images.

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