PixelDataFormat.GetRgb

GetRgb(int)

获取具有指定每样本位数的 RGB 颜色。

public static PixelDataFormat GetRgb(int bitsPerSample)
参数类型描述
bitsPerSampleInt32每个样本的位数。

返回值

RGB 颜色。

另请参见


GetRgb(int, int, int)

获取具有指定每样本位数的 RGB 颜色。

public static PixelDataFormat GetRgb(int bitsPerRedChannel, int bitsPerGreenChannel, 
    int bitsPerBlueChannel)
参数类型描述
bitsPerRedChannelInt32每个红色通道的位数。
bitsPerGreenChannelInt32每个绿色通道的位数。
bitsPerBlueChannelInt32每个蓝色通道的位数。

返回值

RGB 颜色。

另请参见