Method | Description | |
---|---|---|
ApplyFilter ( |
Applies the filter to the specified bitmap. This method first calls ImageReplacementFilter.GetDestinationDimensions(FastBitmap, out Int32, out Int32) to calculate the size of the destination image. Then it calls ImageReplacementFilter.ApplyFilter(FastBitmap, DrawingContext, int, int) which is where the overridden class implements its filter algorithm.
|
Method | Description | |
---|---|---|
ApplyFilter ( |
When overridden in a derived class, applies the filter to the specified source.
|
|
CleanUpDrawingVisual ( |
Inherited classes can use this to clean up the supplied DrawingVisual. For example, ShaderEffectFilter disposes the shader effect.
|
|
ConfigureDrawingVisual ( |
Inherited classes can use this to configure the supplied DrawingVisual. For example, RotationFilter sets the BitmapScalingMode render option.
|
|
GetDestinationDimensions ( |
When overridden in a derived class, returns the dimensions of the output image.
|
|
OnBeginApplyFilter ( |
This method allows derived classes to perform actions prior to the filter being applied.
|
|
OnEndApplyFilter ( ) : void |
This method allows derived classes to perform actions after the filter has been applied.
|
public final ApplyFilter ( |
||
bitmap |
/// Image to apply the |
|
return | void |
protected abstract ApplyFilter ( |
||
source | The source image. | |
dc | System.Windows.Media.DrawingContext | A |
width | int | |
height | int | |
return | void |
protected CleanUpDrawingVisual ( |
||
source | ||
drawingVisual | System.Windows.Media.DrawingVisual | |
return | void |
protected ConfigureDrawingVisual ( |
||
source | ||
drawingVisual | System.Windows.Media.DrawingVisual | |
return | void |
protected abstract GetDestinationDimensions ( |
||
source | The source image. | |
width | int | The desired width of the output image. |
height | int | The desired height of the output image. |
return | bool |
protected OnBeginApplyFilter ( |
||
bitmap | ||
return | void |