Color To Rgb
using System; using System.Drawing; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Collections.Generic; public static class Utilities { public static int ColorToRgb(Color c) { return c.R + (c.G << 8) + (c.B << 16); } }