C# Class SoundInTheory.DynamicImage.Filters.TransformFilter

Inheritance: SoundInTheory.DynamicImage.Filters.Filter
Mostra file Open project: sitdap/dynamic-image

Public Methods

Method Description
ApplyFilter ( FastBitmap bitmap ) : void

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

ApplyFilter() public final method

public final ApplyFilter ( FastBitmap bitmap ) : void
bitmap SoundInTheory.DynamicImage.Util.FastBitmap
return void

GetDestinationDimensions() protected abstract method

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.
return bool

GetTransformedSpace() protected method

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.
return System.Windows.Int32Rect

OnBeginApplyFilter() protected method

This method allows derived classes to perform actions prior to the filter being applied.
protected OnBeginApplyFilter ( FastBitmap bitmap ) : void
bitmap SoundInTheory.DynamicImage.Util.FastBitmap
return void

TransformInverse() protected abstract method

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.
return Point