ImageExtensionsToGrayscale Method
Returns a new
Image, which is the grayscale version of the specified
image.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static Image ToGrayscale(
this Image image
)
<ExtensionAttribute>
Public Shared Function ToGrayscale (
image As Image
) As Image
public:
[ExtensionAttribute]
static Image^ ToGrayscale(
Image^ image
)
[<ExtensionAttribute>]
static member ToGrayscale :
image : Image -> Image
- image Image
- The image to convert to grayscale.
ImageAn
Image containing the grayscale version of the original
image.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).