예제 #1
0
        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);
        }
예제 #2
0
 /// <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));
예제 #3
0
 /// <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));