Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GrayscaleBitmap Class / ShrinkPixelFormat Method
The target number of bits per pixel (from 1 to 8).
The method of two-dimensional error diffusion dithering.

In This Topic
    ShrinkPixelFormat Method
    In This Topic
    Changes pixel format from 8 bits per pixel to lower value with two-dimensional error diffusion.
    Syntax
    'Declaration
     
    Public Sub ShrinkPixelFormat( _
       ByVal bitsInPixel As System.Integer, _
       ByVal ditheringMethod As DitheringMethod _
    ) 
    public void ShrinkPixelFormat( 
       System.int bitsInPixel,
       DitheringMethod ditheringMethod
    )

    Parameters

    bitsInPixel
    The target number of bits per pixel (from 1 to 8).
    ditheringMethod
    The method of two-dimensional error diffusion dithering.
    See Also