WPF equivalent of GDI + ColorMatrix

I noticed that WPF has System.Windows.Media (.Imaging) namespaces that contain many features like System.Drawing (.Imagine), but I don't see the ColorMatrix equivalent in GDI +. In fact, I see no way to do color conversions in general. Is there one? I am pleased with the use of GDI +, but I was curious.

+3
source share
2 answers

WPF allows you to write custom pixel shaders. They are more versatile than ColorMatrix, which can be replicated as a pixel shader, plus they run on a GPU. Shazzam comes with some samples and simplifies the writing process.

: WPF , , , System.Windows.Media.Imaging WriteableBitmap RenderTargetBitmap. , gdi + Direct2D .

+1

Source: https://habr.com/ru/post/1794290/


All Articles