C# 클래스 SoundInTheory.DynamicImage.Filters.TransformFilter

상속: SoundInTheory.DynamicImage.Filters.Filter
파일 보기 프로젝트 열기: sitdap/dynamic-image

공개 메소드들

메소드 설명
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