public static RgbColor FromRgb(int r, int g, int b) { RgbColor color = new RgbColor(); color.R = (byte)r; color.G = (byte)g; color.B = (byte)b; return color; }
/// <summary> /// Get black color. /// </summary> public static RgbColor Black() { return(RgbColor.FromRgb(0, 0, 0)); }