WebPImage.Dither

WebPImage.Dither method

Perform dithering on the current image to reduce color banding and enhance visual quality. Integrate this method into your image processing workflow to achieve smoother transitions between colors and improve the overall appearance of the image within your application.

public override void Dither(DitheringMethod ditheringMethod, int bitsCount, 
    IColorPalette customPalette)
ParameterTypeDescription
ditheringMethodDitheringMethodThe dithering method.
bitsCountInt32The final bits count for dithering.
customPaletteIColorPaletteThe custom palette for dithering.

See Also