DitherType 枚举

定义

指定使用减少的调色板对图像进行交配的方式。

public enum class DitherType
public enum DitherType
type DitherType = 
Public Enum DitherType
继承
DitherType

字段

名称 说明
None 0

不执行任何任用。 源位图中的像素映射到方法的调色板参数 ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette, Single) 指定的调色板中最接近的颜色。 此算法可用于除其他任何调色板之外 Custom的任何调色板。

Solid 1

不执行任何任用。 源位图中的像素映射到方法的调色板参数 ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette, Single) 指定的调色板中最接近的颜色。 此算法可用于任何调色板。

Ordered4x4 2

根据其中一个标准固定调色板中的颜色执行任一的算法。 此算法还可用于将位图转换为没有调色板的 16 位/像素格式。

Ordered8x8 3

使用标准固定调色板之一中的颜色执行 Dithering。

Ordered16x16 4

使用标准固定调色板之一中的颜色执行 Dithering。

Spiral4x4 5

使用标准固定调色板之一中的颜色执行 Dithering。

Spiral8x8 6

使用标准固定调色板之一中的颜色执行 Dithering。

DualSpiral4x4 7

使用标准固定调色板之一中的颜色执行 Dithering。

DualSpiral8x8 8

使用标准固定调色板之一中的颜色执行 Dithering。

ErrorDiffusion 9

基于方法的 ConvertFormat(PixelFormat, DitherType, PaletteType, ColorPalette, Single) 调色板参数指定的调色板执行 Dithering。 此算法可用于任何调色板。

注解

有关有序和螺旋式任一类型的信息,请参阅 Win32 DitherType 枚举的备注。 上面提到的固定调色板类型对应于 PaletteType 枚举。

适用于

另请参阅