C# Class SimplePaletteQuantizer.Ditherers.BaseColorDitherer

Inheritance: IColorDitherer
Afficher le fichier Open project: RHY3756547/FreeSO

Méthodes publiques

Méthode Description
ChangePathProvider ( IPathProvider pathProvider ) : void
Finish ( ) : void

See IColorDitherer.Prepare for more details.

GetPointPath ( ) : IList

Retrieves the path in which to traverse

GetPointPath ( Int32 width, Int32 heigth ) : IList

See IPathProvider.GetPointPath for more details.

Prepare ( IColorQuantizer quantizer, Int32 colorCount, ImageBuffer sourceBuffer, ImageBuffer targetBuffer ) : void

See IColorDitherer.Prepare for more details.

ProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean

See ProcessPixel for more details.

Méthodes protégées

Méthode Description
CreateCoeficientMatrix ( ) : ].Byte[

Creates the coeficient matrix.

GetClampedColorElement ( Int32 colorElement ) : Int32
GetClampedColorElementWithError ( Int32 colorElement, System.Single factor, Int32 error ) : Int32
OnCreateDefaultPathProvider ( ) : IPathProvider

Called when a need to create default path provider arisen.

OnFinish ( ) : void

Called when dithering is finished.

OnPrepare ( ) : void

Called when ditherer is about to be prepared.

OnProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean

Allows ditherer to process image per pixel, with ability to access the rest of the image.

Private Methods

Méthode Description
GetMatrixFactor ( ) : Int32
GetPathProvider ( ) : IPathProvider

Method Details

ChangePathProvider() public méthode

public ChangePathProvider ( IPathProvider pathProvider ) : void
pathProvider IPathProvider
Résultat void

CreateCoeficientMatrix() protected abstract méthode

Creates the coeficient matrix.
protected abstract CreateCoeficientMatrix ( ) : ].Byte[
Résultat ].Byte[

Finish() public méthode

See IColorDitherer.Prepare for more details.
public Finish ( ) : void
Résultat void

GetClampedColorElement() protected méthode

protected GetClampedColorElement ( Int32 colorElement ) : Int32
colorElement System.Int32
Résultat System.Int32

GetClampedColorElementWithError() protected méthode

protected GetClampedColorElementWithError ( Int32 colorElement, System.Single factor, Int32 error ) : Int32
colorElement System.Int32
factor System.Single
error System.Int32
Résultat System.Int32

GetPointPath() public méthode

Retrieves the path in which to traverse
public GetPointPath ( ) : IList
Résultat IList

GetPointPath() public méthode

See IPathProvider.GetPointPath for more details.
public GetPointPath ( Int32 width, Int32 heigth ) : IList
width System.Int32
heigth System.Int32
Résultat IList

OnCreateDefaultPathProvider() protected méthode

Called when a need to create default path provider arisen.
protected OnCreateDefaultPathProvider ( ) : IPathProvider
Résultat IPathProvider

OnFinish() protected méthode

Called when dithering is finished.
protected OnFinish ( ) : void
Résultat void

OnPrepare() protected méthode

Called when ditherer is about to be prepared.
protected OnPrepare ( ) : void
Résultat void

OnProcessPixel() protected abstract méthode

Allows ditherer to process image per pixel, with ability to access the rest of the image.
protected abstract OnProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean
sourcePixel Pixel
targetPixel Pixel
Résultat System.Boolean

Prepare() public méthode

See IColorDitherer.Prepare for more details.
public Prepare ( IColorQuantizer quantizer, Int32 colorCount, ImageBuffer sourceBuffer, ImageBuffer targetBuffer ) : void
quantizer IColorQuantizer
colorCount System.Int32
sourceBuffer SimplePaletteQuantizer.Helpers.ImageBuffer
targetBuffer SimplePaletteQuantizer.Helpers.ImageBuffer
Résultat void

ProcessPixel() public méthode

See ProcessPixel for more details.
public ProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean
sourcePixel Pixel
targetPixel Pixel
Résultat System.Boolean