I have a canvas in which I add a child image element.
<Canvas SnapsToDevicePixels="True" Width="56160" Height="37440">
<Image Width="56160" Height="37440" x:Name="OverlayImage"/>
</Canvas>
On this canvas, I need to draw ordinary lines that will blur the background. An example of this brush is available in Photoshop (Blur brush). I know how to blur the entire canvas using the BlurEffect class (from the System.Windows.Media.Effects namespace).
But I need blurring where the user draws the line.
I guess that maybe I need to implement a shader for this task, but I don’t have the practice of writing code HLSL (High Level Shader Language). Tell me, what approach should I use to solve this problem?