RadialBlurEffect
A pixel shader effect that smears its input along the line from each pixel towards a centre point - the streak a camera leaves when it zooms during the exposure.
public class RadialBlurEffect : ShaderEffect
Inherits from / implements: ShaderEffect
Remarks
Twelve samples are taken per pixel, which is enough to read as a streak without banding at the strengths this effect is meant for. Animate BlurAmount from zero for a zoom-in; move CenterXY to throw the streak off-axis.
Members at a glance
RadialBlurEffect | Initializes a new instance of the RadialBlurEffect class. |
BlurAmount | How far each pixel is smeared towards CenterXY, as a fraction of its distance from it. Zero leaves the input untouched; a useful range is about 0.05 to 0.5. |
CenterXY | The point the streak converges on, in texture coordinates, where (0,0) is the top left of the element and (1,1) the bottom right. |
Input | The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush. |
BlurAmountProperty | Identifies the BlurAmount dependency property. |
CenterXYProperty | Identifies the CenterXY dependency property. |
InputProperty | Identifies the Input dependency property. |
Constructors
RadialBlurEffect
Initializes a new instance of the RadialBlurEffect class.
Properties
BlurAmount
How far each pixel is smeared towards CenterXY, as a fraction of its distance from it. Zero leaves the input untouched; a useful range is about 0.05 to 0.5.
CenterXY
The point the streak converges on, in texture coordinates, where (0,0) is the top left of the element and (1,1) the bottom right.
Input
The image this effect is applied to. It is set for you when the effect is attached to an element; set it directly only when using the effect as a brush.
Fields
BlurAmountProperty
Identifies the BlurAmount dependency property.
CenterXYProperty
Identifies the CenterXY dependency property.
InputProperty
Identifies the Input dependency property.