PixelFormat 列舉

定義

指定影像中每個像素的色彩資料格式。Specifies the format of the color data for each pixel in the image.

public enum class PixelFormat
public enum PixelFormat
type PixelFormat = 
Public Enum PixelFormat
繼承
PixelFormat

欄位

Alpha 262144

像素資料含有未預先相乘的 Alpha 值。The pixel data contains alpha values that are not premultiplied.

Canonical 2097152

預設的像素格式為每像素 32 位元。The default pixel format of 32 bits per pixel. 此格式會指定 24 位元的色彩深度及 8 位元的 Alpha 色版。The format specifies 24-bit color depth and an 8-bit alpha channel.

DontCare 0

未指定像素格式。No pixel format is specified.

Extended 1048576

保留的。Reserved.

Format16bppArgb1555 397319

像素格式為每像素 16 位元。The pixel format is 16 bits per pixel. 色彩資訊會指定 32,768 的色彩漸層,其中 5 位元是紅色、5 位元是綠色、5 位元是藍色,1 位元是 Alpha。The color information specifies 32,768 shades of color, of which 5 bits are red, 5 bits are green, 5 bits are blue, and 1 bit is alpha.

Format16bppGrayScale 1052676

像素格式為每像素 16 位元。The pixel format is 16 bits per pixel. 色彩資訊會指定 65536 色灰階。The color information specifies 65536 shades of gray.

Format16bppRgb555 135173

指定格式為每像素 16 位元;各有 5 位元用於紅色、綠色和藍色元件。Specifies that the format is 16 bits per pixel; 5 bits each are used for the red, green, and blue components. 剩餘的位元則不使用。The remaining bit is not used.

Format16bppRgb565 135174

指定格式為每像素 16 位元,5 位元用於紅色元件、6 位元用於綠色元件,5 位元用於藍色元件。Specifies that the format is 16 bits per pixel; 5 bits are used for the red component, 6 bits are used for the green component, and 5 bits are used for the blue component.

Format1bppIndexed 196865

指定像素格式為每像素 1 位元,並使用索引色彩。Specifies that the pixel format is 1 bit per pixel and that it uses indexed color. 因此,色彩表中具有兩種色彩。The color table therefore has two colors in it.

Format24bppRgb 137224

指定格式為每像素 24 位元;各有 8 位元用於紅色、綠色和藍色元件。Specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components.

Format32bppArgb 2498570

指定格式為每像素 32 位元;各有 8 位元用於 Alpha、紅色、綠色和藍色元件。Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components.

Format32bppPArgb 925707

指定格式為每像素 32 位元;各有 8 位元用於 Alpha、紅色、綠色和藍色元件。Specifies that the format is 32 bits per pixel; 8 bits each are used for the alpha, red, green, and blue components. 紅色、綠色、藍色元件會根據 Alpha 元件來預先相乘。The red, green, and blue components are premultiplied, according to the alpha component.

Format32bppRgb 139273

指定格式為每像素 32 位元;各有 8 位元用於紅色、綠色和藍色元件。Specifies that the format is 32 bits per pixel; 8 bits each are used for the red, green, and blue components. 剩餘的 8 位元則不使用。The remaining 8 bits are not used.

Format48bppRgb 1060876

指定格式為每像素 48 位元;各有 16 位元用於紅色、綠色和藍色元件。Specifies that the format is 48 bits per pixel; 16 bits each are used for the red, green, and blue components.

Format4bppIndexed 197634

指定格式為每像素 4 位元的索引色彩。Specifies that the format is 4 bits per pixel, indexed.

Format64bppArgb 3424269

指定格式為每像素 64 位元;各有 16 位元用於 Alpha、紅色、綠色和藍色元件。Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components.

Format64bppPArgb 1851406

指定格式為每像素 64 位元;各有 16 位元用於 Alpha、紅色、綠色和藍色元件。Specifies that the format is 64 bits per pixel; 16 bits each are used for the alpha, red, green, and blue components. 紅色、綠色、藍色元件會根據 Alpha 元件來預先相乘。The red, green, and blue components are premultiplied according to the alpha component.

Format8bppIndexed 198659

指定格式為每像素 8 位元的索引色彩。Specifies that the format is 8 bits per pixel, indexed. 因此,色彩表中具有 256 種色彩。The color table therefore has 256 colors in it.

Gdi 131072

像素資料含有 GDI 色彩。The pixel data contains GDI colors.

Indexed 65536

像素資料含有色彩索引值,這表示這些值是系統色彩表中色彩的索引 (相對於個別的色彩值)。The pixel data contains color-indexed values, which means the values are an index to colors in the system color table, as opposed to individual color values.

Max 15

這個列舉型別的最大值。The maximum value for this enumeration.

PAlpha 524288

像素格式含有預先相乘的 Alpha 值。The pixel format contains premultiplied alpha values.

Undefined 0

未定義像素格式。The pixel format is undefined.

備註

像素格式會定義與一個資料圖元相關聯的記憶體位數目。The pixel format defines the number of bits of memory associated with one pixel of data. 此格式也會定義資料的單一圖元內的色彩元件順序。The format also defines the order of the color components within a single pixel of data.

PixelFormat48bppRGB、PixelFormat64bppARGB 和 PixelFormat64bppPARGB 會針對每個色彩元件 (channel) 使用16個位。PixelFormat48bppRGB, PixelFormat64bppARGB, and PixelFormat64bppPARGB use 16 bits per color component (channel). GDI + 版本1.0 和1.1 可以讀取每個通道16位的影像, 但這類影像會轉換成8位的每一通道格式, 以進行處理、顯示和儲存。GDI+ version 1.0 and 1.1 can read 16-bits-per-channel images, but such images are converted to an 8-bits-per-channel format for processing, displaying, and saving. 每個16位色頻都可以包含0到 2 ^ 13 範圍內的值。Each 16-bit color channel can hold a value in the range 0 through 2^13.

某些像素格式包含預乘的色彩值。Some of the pixel formats contain premultiplied color values. 預乘表示色彩值已經乘以 Alpha 值。Premultiplied means that the color values have already been multiplied by an alpha value.

適用於