C# Class SoundInTheory.DynamicImage.Filters.ShaderEffectFilter

The base class for filters that apply an HLSL shader to the image.
Inheritance: ImageReplacementFilter
Afficher le fichier Open project: sitdap/dynamic-image

Méthodes protégées

Méthode 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 méthode

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
Résultat void

CleanUpDrawingVisual() protected méthode

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

ConfigureDrawingVisual() protected méthode

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

GetDestinationDimensions() protected méthode

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.
Résultat bool

GetEffect() protected abstract méthode

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