[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcBitmap.ShrinkARGBFormat

ShrinkARGBFormat Method

ShrinkARGBFormat(int, DitheringMethod)

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

Declaration
public void ShrinkARGBFormat(int bitsPerChannel, DitheringMethod ditheringMethod)
Public Sub ShrinkARGBFormat(bitsPerChannel As Integer, ditheringMethod As DitheringMethod)
Parameters
Type Name Description
int bitsPerChannel

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

DitheringMethod ditheringMethod

The method of two-dimensional error diffusion dithering.

ShrinkARGBFormat(int, int, int, int, DitheringMethod)

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

Declaration
public void ShrinkARGBFormat(int bitsPerAlpha, int bitsPerRed, int bitsPerGreen, int bitsPerBlue, DitheringMethod ditheringMethod)
Public Sub ShrinkARGBFormat(bitsPerAlpha As Integer, bitsPerRed As Integer, bitsPerGreen As Integer, bitsPerBlue As Integer, ditheringMethod As DitheringMethod)
Parameters
Type Name Description
int bitsPerAlpha

The target number of bits per Alpha channel (from 1 to 8), ignored for opaque images.

int bitsPerRed

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

int bitsPerGreen

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

int bitsPerBlue

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

DitheringMethod ditheringMethod

The method of two-dimensional error diffusion dithering.