title: How can I apply a matrix color transform to image in a Drawing Context in WPF/C#?
body: <p>I am trying to render an image (<code>BitmapSource</code>) to the screen using wpf in c# via a drawing context with predefined properties pushed onto the stack elsewhere in my program. I want to apply a color transform like the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.drawing.imaging.colormatrix?view=dotnet-plat-ext-6.0" rel="nofollow noreferrer">ColorMatrix</a> class in System.Drawing without losing the context in my DrawingContext. Is there any way to achieve this effect? It seems like it may be doable with shaders, but it seems overkill to add in hlsl for this use.</p>