C# Класс SimplePaletteQuantizer.Ditherers.BaseColorDitherer

Наследование: IColorDitherer
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Приватные методы

Метод Описание
GetMatrixFactor ( ) : Int32
GetPathProvider ( ) : IPathProvider

Описание методов

ChangePathProvider() публичный Метод

public ChangePathProvider ( IPathProvider pathProvider ) : void
pathProvider IPathProvider
Результат void

CreateCoeficientMatrix() защищенный абстрактный Метод

Creates the coeficient matrix.
protected abstract CreateCoeficientMatrix ( ) : ].Byte[
Результат ].Byte[

Finish() публичный Метод

See IColorDitherer.Prepare for more details.
public Finish ( ) : void
Результат void

GetClampedColorElement() защищенный Метод

protected GetClampedColorElement ( Int32 colorElement ) : Int32
colorElement System.Int32
Результат System.Int32

GetClampedColorElementWithError() защищенный Метод

protected GetClampedColorElementWithError ( Int32 colorElement, System.Single factor, Int32 error ) : Int32
colorElement System.Int32
factor System.Single
error System.Int32
Результат System.Int32

GetPointPath() публичный Метод

Retrieves the path in which to traverse
public GetPointPath ( ) : IList
Результат IList

GetPointPath() публичный Метод

See IPathProvider.GetPointPath for more details.
public GetPointPath ( Int32 width, Int32 heigth ) : IList
width System.Int32
heigth System.Int32
Результат IList

OnCreateDefaultPathProvider() защищенный Метод

Called when a need to create default path provider arisen.
protected OnCreateDefaultPathProvider ( ) : IPathProvider
Результат IPathProvider

OnFinish() защищенный Метод

Called when dithering is finished.
protected OnFinish ( ) : void
Результат void

OnPrepare() защищенный Метод

Called when ditherer is about to be prepared.
protected OnPrepare ( ) : void
Результат void

OnProcessPixel() защищенный абстрактный Метод

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
Результат System.Boolean

Prepare() публичный Метод

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
Результат void

ProcessPixel() публичный Метод

See ProcessPixel for more details.
public ProcessPixel ( Pixel sourcePixel, Pixel targetPixel ) : System.Boolean
sourcePixel Pixel
targetPixel Pixel
Результат System.Boolean