CSharp examples for System.Drawing:Color Brightness
Get illumination From Color
using Windows.UI; using System.Threading.Tasks; using System.Text; using System.Linq; using System.Collections.Generic; using System;//from ww w. j a v a2 s . c o m public class Main{ public static double GetLumaFromColor(Color color) { return 0.299 * color.R + 0.587 * color.G + 0.114 * color.B; } }