public static void NaiveReplace(string file, string oldColorHex, string newColorHex, bool createBackupFile = false) { var processor = new DmcColorProcessor(); NaiveReplace(file, processor.SmartColorFinder(oldColorHex), processor.SmartColorFinder(newColorHex), createBackupFile); }
/// <summary> /// Replace per scanned model stored in Sprite, Pixels, json, et al. /// </summary> /// <param name="oldColor">Hex or DMC code</param> /// <param name="newColor">Hex or DMC code</param> public void TargetedReplace(string oldColor, string newColor) => TargetedReplace(DmcColorProcessor.SmartColorFinder(oldColor), DmcColorProcessor.SmartColorFinder(newColor));
/// <summary> /// Iterate through every pixel. If color matches: replace it /// </summary> public void NaiveReplace(string oldColorHex, string newColorHex) => NaiveReplace(DmcColorProcessor.SmartColorFinder(oldColorHex), DmcColorProcessor.SmartColorFinder(newColorHex));