Question re filter matrices #1367
-
Was wondering the following If you have a filter matrix that say does sepia and another that does some other filter, can you multiply the matrices to get a combined effect and if so would be a cool processor if you could combine filter matrices and apply. |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Oct 2, 2020
Replies: 1 comment
-
Yeah you can already multiply Here's an example from our unit tests. ColorMatrix brightness = KnownFilterMatrices.CreateBrightnessFilter(0.9F);
ColorMatrix hue = KnownFilterMatrices.CreateHueFilter(180F);
ColorMatrix saturation = KnownFilterMatrices.CreateSaturateFilter(1.5F);
return brightness * hue * saturation; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JimBobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah you can already multiply
ColorMatrix
structs and pass them toFilter
.Here's an example from our unit tests.