public static void SetBackgroundColor(System.Drawing.Color c1) { // Desc2 var Desc2 = ColorAPI.CreateRGBColorDescriptor(c1); ColorAPI.__SetAppColor((int)con.phKeyBackgroundColor, Desc2); }
public static void SetForegroundColor(int red, int green, int blue) { // Desc2 PhotoshopTypeLibrary.IActionDescriptor Desc2 = ColorAPI.CreateRGBColorDescriptor(red, green, blue); ColorAPI.__SetAppColor((int)con.phKeyForegroundColor, Desc2); }