GetRgba

GetRgba(int)

获取每个样本指定位数的 RGBA 颜色。

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

返回值

RGBA 颜色。

也可以看看


GetRgba(int, int, int, int)

获取每个样本指定位数的 RGBA 颜色。

public static PixelDataFormat GetRgba(int bitsPerRedChannel, int bitsPerGreenChannel, 
    int bitsPerBlueChannel, int bitsPerAlphaChannel)
范围类型描述
bitsPerRedChannelInt32每个红色通道的位数。
bitsPerGreenChannelInt32每个绿色通道的位数。
bitsPerBlueChannelInt32每个蓝色通道的位数。
bitsPerAlphaChannelInt32每个 Alpha 通道的位数。

返回值

RGBA 颜色。

也可以看看