AForge.Imaging.ColorReduction.ErrorDiffusionColorDithering.Diffuse C# (CSharp) Method

Diffuse() protected abstract method

Do error diffusion.
All parameters of the image and current processing pixel's coordinates are initialized in protected members.
protected abstract Diffuse ( int rError, int gError, int bError, byte ptr ) : void
rError int Error value of red component.
gError int Error value of green component.
bError int Error value of blue component.
ptr byte Pointer to current processing pixel.
return void
        protected abstract unsafe void Diffuse( int rError, int gError, int bError, byte* ptr );