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



Determines if this RasterImage is a grayscale image. Supported in Silverlight, Windows Phone 7

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;}
C++/CLI 
public:
property RasterGrayscaleMode GrayscaleMode {
   RasterGrayscaleMode get();
}

Property Value

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

Example

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: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also