How to

multiply color channels by specified value

Published: 24. October 2011 | Updated: 24. October 2011
License: Microsoft Public License (MS-PL)
Categories: WPF
Tags: C# Colors WPF
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Windows.Media;

Code

Color green = Colors.ForestGreen;
            
Color color = Color.Multiply(green, 0.5f);
Send us feedback about this snippet »



Related Snippets: