Grayscales an image.
Namespace: System.Extensions.DrawingAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
public static Image ToGrayscale(
this Image image
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function ToGrayscale (
image As Image
) As Image |
Visual C++ |
---|
public:
[ExtensionAttribute]
static Image^ ToGrayscale(
Image^ image
) |
F# |
---|
static member ToGrayscale :
image : Image -> Image
|
Return Value
Type:
ImageA new
Image instance that represents the grayscaled image.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also