메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 |
|
리턴 | void |
protected abstract ApplyFilter ( |
||
source | The source image. | |
dc | System.Windows.Media.DrawingContext | A |
width | int | |
height | int | |
리턴 | void |
protected CleanUpDrawingVisual ( |
||
source | ||
drawingVisual | System.Windows.Media.DrawingVisual | |
리턴 | void |
protected ConfigureDrawingVisual ( |
||
source | ||
drawingVisual | System.Windows.Media.DrawingVisual | |
리턴 | 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. |
리턴 | bool |
protected OnBeginApplyFilter ( |
||
bitmap | ||
리턴 | void |