GetRgba

PixelDataFormat.GetRgba method (1 of 2)

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

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

Return Value

The RGBA color.

See Also


PixelDataFormat.GetRgba method (2 of 2)

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

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

Return Value

The RGBA color.

See Also