using System; using System.Collections.Generic; using System.Text; using System.Drawing; namespace TextDesignerCSLibrary { /// /// Simple helper class to use mask color /// public class MaskColor { /// /// Method to return a primary red color to be used as mask /// public static System.Drawing.Color Red { get { return System.Drawing.Color.FromArgb(0xFF, 0, 0); } } /// /// Method to return a primary green color to be used as mask /// public static System.Drawing.Color Green { get { return System.Drawing.Color.FromArgb(0, 0xFF, 0); } } /// /// Method to return a primary blue color to be used as mask /// public static System.Drawing.Color Blue { get { return System.Drawing.Color.FromArgb(0, 0, 0xFF); } } /// /// Method to compare 2 GDI+ color /// /// is 1st color /// is 2nd color /// true if equal public static bool IsEqual(System.Drawing.Color clr1, System.Drawing.Color clr2) { if (clr1.R == clr2.R && clr1.G == clr2.G && clr1.B == clr2.B) return true; return false; } } }