GrayScaleEffect
Produces the effect that converts an image to grayscale.
using System.Runtime.CompilerServices;
namespace System.Drawing.Imaging.Effects
{
public sealed class GrayScaleEffect : ColorMatrixEffect
{
public GrayScaleEffect()
: base(new ColorMatrix(RuntimeHelpers.CreateSpan<float>((RuntimeFieldHandle))))
{
}
}
}