WebPImage.Dither

WebPImage.Dither method

对当前图像执行抖动处理,以降低颜色带状效应并提升视觉质量。将此方法纳入图像处理工作流,以实现颜色之间更平滑的过渡,改善图像的整体外观。

public override void Dither(DitheringMethod ditheringMethod, int bitsCount, 
    IColorPalette customPalette)
参数类型描述
ditheringMethodDitheringMethod抖动方法。
bitsCountInt32抖动的最终位数。
customPaletteIColorPalette用于抖动的自定义调色板。

另请参见