PixelFormats 类

定义

表示受支持像素格式的集合。Represents the collection of supported pixel formats.

public ref class PixelFormats abstract sealed
public static class PixelFormats
type PixelFormats = class
Public Class PixelFormats
继承
PixelFormats

属性

Bgr101010

获取 Bgr101010 像素格式。Gets the Bgr101010 pixel format. Bgr101010 是具有 32 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgr101010 is a sRGB format with 32 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(蓝色、绿色和红色通道)都分配了 10 每像素位数 (BPP)bits per pixel (BPP)Each color channel (blue, green, and red) is allocated 10 每像素位数 (BPP)bits per pixel (BPP).

Bgr24

获取 Bgr24 像素格式。Gets the Bgr24 pixel format. Bgr24 是具有 24 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgr24 is a sRGB format with 24 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(蓝色、绿色和红色通道)都分配了 8 每像素位数 (BPP)bits per pixel (BPP)Each color channel (blue, green, and red) is allocated 8 每像素位数 (BPP)bits per pixel (BPP).

Bgr32

获取 Bgr32 像素格式。Gets the Bgr32 pixel format. Bgr32 是具有 32 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgr32 is a sRGB format with 32 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(蓝色、绿色和红色通道)都分配了 8 每像素位数 (BPP)bits per pixel (BPP)Each color channel (blue, green, and red) is allocated 8 每像素位数 (BPP)bits per pixel (BPP).

Bgr555

获取 Bgr555 像素格式。Gets the Bgr555 pixel format. Bgr555 是具有 16 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgr555 is a sRGB format with 16 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(蓝色、绿色和红色通道)都分配了 5 每像素位数 (BPP)bits per pixel (BPP)Each color channel (blue, green, and red) is allocated 5 每像素位数 (BPP)bits per pixel (BPP).

Bgr565

获取 Bgr565 像素格式。Gets the Bgr565 pixel format. Bgr565 是具有 16 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgr565 is a sRGB format with 16 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(蓝色、绿色和红色通道)都分别分配了 5、6 和 5 每像素位数 (BPP)bits per pixel (BPP)Each color channel (blue, green, and red) is allocated 5, 6, and 5 每像素位数 (BPP)bits per pixel (BPP) respectively.

Bgra32

获取 Bgra32 像素格式。Gets the Bgra32 pixel format. Bgra32 是具有 32 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Bgra32 is a sRGB format with 32 每像素位数 (BPP)bits per pixel (BPP). 每个通道(蓝色、绿色、红色和 alpha 通道)都分配了 8 每像素位数 (BPP)bits per pixel (BPP)Each channel (blue, green, red, and alpha) is allocated 8 每像素位数 (BPP)bits per pixel (BPP).

BlackWhite

获取黑白像素格式,该格式将每像素的一位数据显示为黑色或白色。Gets the black and white pixel format which displays one bit of data per pixel as either black or white.

Cmyk32

获取 Cmyk32 像素格式,它可显示 32 每像素位数 (BPP)bits per pixel (BPP),每个颜色通道(青色、洋红色、黄色和黑色通道)分配 8 每像素位数 (BPP)bits per pixel (BPP)Gets the Cmyk32 pixel format which displays 32 每像素位数 (BPP)bits per pixel (BPP) with each color channel (cyan, magenta, yellow, and black) allocated 8 每像素位数 (BPP)bits per pixel (BPP).

Default

获取最适合于特定操作的像素格式。Gets the pixel format that is best suited for the particular operation.

Gray16

获取 Gray16 像素格式,它可显示每像素 16 位的灰度通道,允许使用 65536 种灰色底纹。Gets the Gray16 pixel format which displays a 16 bits-per-pixel grayscale channel, allowing 65536 shades of gray. 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Gray2

获取 Gray2 像素格式,它可显示每像素 2 位的灰度通道,允许使用 4 种灰色底纹。Gets the Gray2 pixel format which displays a 2 bits-per-pixel grayscale channel, allowing 4 shades of gray.

Gray32Float

获取 Gray32Float 像素格式。Gets the Gray32Float pixel format. Gray32Float 可显示允许 40 亿种以上灰色底纹的 32 每像素位数 (BPP)bits per pixel (BPP) 灰度通道。Gray32Float displays a 32 每像素位数 (BPP)bits per pixel (BPP) grayscale channel, allowing over 4 billion shades of gray. 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Gray4

获取 Gray4 像素格式,它可显示每像素 4 位的灰度通道,允许使用 16 种灰色底纹。Gets the Gray4 pixel format which displays a 4 bits-per-pixel grayscale channel, allowing 16 shades of gray.

Gray8

获取 Gray8 像素格式,它可显示每像素 8 位的灰度通道,允许使用 256 种灰色底纹。Gets the Gray8 pixel format which displays an 8 bits-per-pixel grayscale channel, allowing 256 shades of gray.

Indexed1

获取像素格式,它指定具有 2 种颜色的调色板位图。Gets the pixel format specifying a paletted bitmap with 2 colors.

Indexed2

获取像素格式,它指定具有 4 种颜色的调色板位图。Gets the pixel format specifying a paletted bitmap with 4 colors.

Indexed4

获取像素格式,它指定具有 16 种颜色的调色板位图。Gets the pixel format specifying a paletted bitmap with 16 colors.

Indexed8

获取像素格式,它指定具有 256 种颜色的调色板位图。Gets the pixel format specifying a paletted bitmap with 256 colors.

Pbgra32

获取 Pbgra32 像素格式。Gets the Pbgra32 pixel format. Pbgra32 是具有 32 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Pbgra32 is a sRGB format with 32 每像素位数 (BPP)bits per pixel (BPP). 每个通道(蓝色、绿色、红色和 alpha 通道)都分配了 8 每像素位数 (BPP)bits per pixel (BPP)Each channel (blue, green, red, and alpha) is allocated 8 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道都预先乘以 alpha 值。Each color channel is pre-multiplied by the alpha value.

Prgba128Float

获取 Prgba128Float 像素格式。Gets the Prgba128Float pixel format. Prgba128Float 是具有 128 每像素位数 (BPP)bits per pixel (BPP) 的 ScRGB 格式。Prgba128Float is a ScRGB format with 128 每像素位数 (BPP)bits per pixel (BPP). 每个通道(红色、绿色、蓝色和 alpha 通道)都分配了 32 每像素位数 (BPP)bits per pixel (BPP)Each channel (red, green, blue, and alpha) is allocated 32 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道都预先乘以 alpha 值。Each color channel is pre-multiplied by the alpha value. 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Prgba64

获取 Prgba64 像素格式。Gets the Prgba64 pixel format. Prgba64 是具有 64 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Prgba64 is a sRGB format with 64 每像素位数 (BPP)bits per pixel (BPP). 每个通道(蓝色、绿色、红色和 alpha 通道)都分配了 32 每像素位数 (BPP)bits per pixel (BPP)Each channel (blue, green, red, and alpha) is allocated 32 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道都预先乘以 alpha 值。Each color channel is pre-multiplied by the alpha value. 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Rgb128Float

获取 Rgb128Float 像素格式。Gets the Rgb128Float pixel format. Rgb128Float 是具有 128 每像素位数 (BPP)bits per pixel (BPP) 的 ScRGB 格式。Rgb128Float is a ScRGB format with 128 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道都分配了 32 BPPBPPEach color channel is allocated 32 BPPBPP. 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Rgb24

获取 Rgb24 像素格式。Gets the Rgb24 pixel format. Rgb24 是具有 24 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Rgb24 is a sRGB format with 24 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(红色、绿色和蓝色通道)都分配了 8 每像素位数 (BPP)bits per pixel (BPP)Each color channel (red, green, and blue) is allocated 8 每像素位数 (BPP)bits per pixel (BPP).

Rgb48

获取 Rgb48 像素格式。Gets the Rgb48 pixel format. Rgb48 是具有 48 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Rgb48 is a sRGB format with 48 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道(红色、绿色和蓝色通道)都分配了 16 每像素位数 (BPP)bits per pixel (BPP)Each color channel (red, green, and blue) is allocated 16 每像素位数 (BPP)bits per pixel (BPP). 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Rgba128Float

获取 Rgba128Float 像素格式。Gets the Rgba128Float pixel format. Rgba128Float 是具有 128 每像素位数 (BPP)bits per pixel (BPP) 的 ScRGB 格式。Rgba128Float is a ScRGB format with 128 每像素位数 (BPP)bits per pixel (BPP). 每个颜色通道都分配了 32 每像素位数 (BPP)bits per pixel (BPP)Each color channel is allocated 32 每像素位数 (BPP)bits per pixel (BPP). 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

Rgba64

获取 Rgba64 像素格式。Gets the Rgba64 pixel format. Rgba64 是具有 64 每像素位数 (BPP)bits per pixel (BPP) 的 sRGB 格式。Rgba64 is an sRGB format with 64 每像素位数 (BPP)bits per pixel (BPP). 每个通道(红色、绿色、蓝色和 alpha 通道)都分配了 16 每像素位数 (BPP)bits per pixel (BPP)Each channel (red, green, blue, and alpha) is allocated 16 每像素位数 (BPP)bits per pixel (BPP). 此像素格式的 gamma 值为 1.0。This format has a gamma of 1.0.

适用于