C# Class SoundInTheory.DynamicImage.Filters.ShaderEffectFilter

The base class for filters that apply an HLSL shader to the image.
Inheritance: ImageReplacementFilter
显示文件 Open project: sitdap/dynamic-image

Protected Methods

Method Description
ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int width, int height ) : void

Applies the filter to the specified source.

CleanUpDrawingVisual ( FastBitmap source, System.Windows.Media.DrawingVisual drawingVisual ) : void
ConfigureDrawingVisual ( FastBitmap source, System.Windows.Media.DrawingVisual drawingVisual ) : void
GetDestinationDimensions ( FastBitmap source, int &width, int &height ) : bool

Returns the dimensions of the output image.

GetEffect ( FastBitmap source ) : System.Windows.Media.Effects.Effect

Method Details

ApplyFilter() protected method

Applies the filter to the specified source.
protected ApplyFilter ( FastBitmap source, System.Windows.Media.DrawingContext dc, int width, int height ) : void
source SoundInTheory.DynamicImage.Util.FastBitmap The source image.
dc System.Windows.Media.DrawingContext
width int
height int
return void

CleanUpDrawingVisual() protected method

protected CleanUpDrawingVisual ( FastBitmap source, System.Windows.Media.DrawingVisual drawingVisual ) : void
source SoundInTheory.DynamicImage.Util.FastBitmap
drawingVisual System.Windows.Media.DrawingVisual
return void

ConfigureDrawingVisual() protected method

protected ConfigureDrawingVisual ( FastBitmap source, System.Windows.Media.DrawingVisual drawingVisual ) : void
source SoundInTheory.DynamicImage.Util.FastBitmap
drawingVisual System.Windows.Media.DrawingVisual
return void

GetDestinationDimensions() protected method

Returns the dimensions of the output image.
protected 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

GetEffect() protected abstract method

protected abstract GetEffect ( FastBitmap source ) : System.Windows.Media.Effects.Effect
source SoundInTheory.DynamicImage.Util.FastBitmap
return System.Windows.Media.Effects.Effect