GetGrayscale

PixelDataFormat.GetGrayscale method

Gets Grayscale color with a specified number of bits per sample.

public static PixelDataFormat GetGrayscale(int bitsPerSample)
ParameterTypeDescription
bitsPerSampleInt32The number of bits per sample.

Return Value

The Grayscale color.

See Also