Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / ShrinkARGBFormat Method / ShrinkARGBFormat(Int32,Int32,Int32,Int32,DitheringMethod) Method
The target number of bits per Alpha channel (from 1 to 8), ignored for opaque images.
The target number of bits per Red channel (from 1 to 8).
The target number of bits per Green channel (from 1 to 8).
The target number of bits per Blue channel (from 1 to 8).
The method of two-dimensional error diffusion dithering.

In This Topic
    ShrinkARGBFormat(Int32,Int32,Int32,Int32,DitheringMethod) Method
    In This Topic
    Changes pixel format from 8 bits per channel to lower values with two-dimensional error diffusion.
    Syntax
    'Declaration
     
    Public Overloads Sub ShrinkARGBFormat( _
       ByVal bitsPerAlpha As System.Integer, _
       ByVal bitsPerRed As System.Integer, _
       ByVal bitsPerGreen As System.Integer, _
       ByVal bitsPerBlue As System.Integer, _
       ByVal ditheringMethod As DitheringMethod _
    ) 
    public void ShrinkARGBFormat( 
       System.int bitsPerAlpha,
       System.int bitsPerRed,
       System.int bitsPerGreen,
       System.int bitsPerBlue,
       DitheringMethod ditheringMethod
    )

    Parameters

    bitsPerAlpha
    The target number of bits per Alpha channel (from 1 to 8), ignored for opaque images.
    bitsPerRed
    The target number of bits per Red channel (from 1 to 8).
    bitsPerGreen
    The target number of bits per Green channel (from 1 to 8).
    bitsPerBlue
    The target number of bits per Blue channel (from 1 to 8).
    ditheringMethod
    The method of two-dimensional error diffusion dithering.
    See Also