[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GrayscaleBitmap.ShrinkPixelFormat

ShrinkPixelFormat Method

ShrinkPixelFormat(int, DitheringMethod)

Changes pixel format from 8 bits per pixel to lower value with two-dimensional error diffusion.

Declaration
public void ShrinkPixelFormat(int bitsInPixel, DitheringMethod ditheringMethod)
Parameters
Type Name Description
int bitsInPixel

The target number of bits per pixel (from 1 to 8).

DitheringMethod ditheringMethod

The method of two-dimensional error diffusion dithering.