C# Класс SoundInTheory.DynamicImage.Filters.TransformFilter

Наследование: SoundInTheory.DynamicImage.Filters.Filter
Показать файл Открыть проект

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

Метод Описание
ApplyFilter ( FastBitmap bitmap ) : void

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

Метод Описание
GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool

When overridden in a derived class, returns the dimensions of the output image.

GetTransformedSpace ( System.Windows.Int32Rect rect ) : System.Windows.Int32Rect

Forward transform a rectangle. Used to determine the size of the output image.

OnBeginApplyFilter ( FastBitmap bitmap ) : void

This method allows derived classes to perform actions prior to the filter being applied.

TransformInverse ( int x, int y ) : Point

Inverse transform a point. This method needs to be overriden by all subclasses.

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

Метод Описание
FilterPixelsBilinear ( FastBitmap source, FastBitmap destination, int width, int height, System.Windows.Int32Rect transformedSpace ) : void
FilterPixelsNearestNeighbor ( FastBitmap source, FastBitmap destination, int width, int height, System.Windows.Int32Rect transformedSpace ) : void
GetPixel ( FastBitmap bitmap, int x, int y, int width, int height ) : System.Color

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

ApplyFilter() публичный закрытый Метод

public final ApplyFilter ( FastBitmap bitmap ) : void
bitmap SoundInTheory.DynamicImage.Util.FastBitmap
Результат void

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

When overridden in a derived class, returns the dimensions of the output image.
protected abstract GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool
source SoundInTheory.DynamicImage.Util.FastBitmap The source image.
width int The desired width of the output image.
height int The desired height of the output image.
Результат bool

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

Forward transform a rectangle. Used to determine the size of the output image.
protected GetTransformedSpace ( System.Windows.Int32Rect rect ) : System.Windows.Int32Rect
rect System.Windows.Int32Rect The rectangle to transform.
Результат System.Windows.Int32Rect

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

This method allows derived classes to perform actions prior to the filter being applied.
protected OnBeginApplyFilter ( FastBitmap bitmap ) : void
bitmap SoundInTheory.DynamicImage.Util.FastBitmap
Результат void

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

Inverse transform a point. This method needs to be overriden by all subclasses.
protected abstract TransformInverse ( int x, int y ) : Point
x int The X position of the pixel in the output image.
y int The Y position of the pixel in the output image.
Результат Point