[]
In-place effect that converts an image to monochromatic gray.
public class GrayscaleEffect : BaseInplaceEffect
Applies the effect to a part of the specified GcBitmap.
protected override void Apply(GcBitmap bitmap, int x, int y, int width, int height)
bitmap
GcBitmapThe target GcBitmap.
x
intThe x-coordinate of the target rectangle, in pixels.
y
intThe y-coordinate of the target rectangle, in pixels.
width
intThe width of the target rectangle, in pixels.
height
intThe height of the target rectangle, in pixels.
Applies the effect to the specified GcBitmap.
protected override void Apply(GcBitmap bitmap)
Returns an instance of the GrayscaleEffect class.
public static GrayscaleEffect Get(GrayscaleStandard standard = GrayscaleStandard.BT709)
standard
GrayscaleStandardA grayscale standard used for converting full-color image to monochromatic gray.