PixelDataFormat.GetGrayscaleAlpha

GetGrayscaleAlpha(int)

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

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

Return Value

The GrayscaleAlpha color.

See Also


GetGrayscaleAlpha(int, int)

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

public static PixelDataFormat GetGrayscaleAlpha(int bitsPerSample, int alphaChannelBits)
ParameterTypeDescription
bitsPerSampleInt32The number of bits per sample.
alphaChannelBitsInt32The number of bits per sample in the alpha channel.

Return Value

The GrayscaleAlpha color.

See Also