Created
March 4, 2016 17:47
-
-
Save dupuyjs/e9213e02f254fe4114c3 to your computer and use it in GitHub Desktop.
Visual Layer - Saturation Effect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Saturation Effect | |
var graphicsEffect = new SaturationEffect | |
{ | |
Saturation = 0.0f, | |
Source = new CompositionEffectSourceParameter("input") | |
}; | |
var effectFactory = _compositor.CreateEffectFactory(graphicsEffect); | |
var effectBrush = effectFactory.CreateBrush(); | |
effectBrush.SetSourceParameter("input", imageBrush); | |
visual.Brush = effectBrush; | |
#endregion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment