PixelDataFormat.GetRgb

GetRgb(int)

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

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

Return Value

The RGB color.

See Also


GetRgb(int, int, int)

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

public static PixelDataFormat GetRgb(int bitsPerRedChannel, int bitsPerGreenChannel, 
    int bitsPerBlueChannel)
ParameterTypeDescription
bitsPerRedChannelInt32The number of bits per Red channel.
bitsPerGreenChannelInt32The number of bits per Green channel.
bitsPerBlueChannelInt32The number of bits per Blue channel.

Return Value

The RGB color.

See Also