GetGrayscaleAlpha

PixelDataFormat.GetGrayscaleAlpha method (1 of 2)

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


PixelDataFormat.GetGrayscaleAlpha method (2 of 2)

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