private static void ResizeImages(string folderPath, string oldDim, string newDim) { var im = new ImageManipulation { WorkingPath = folderPath }; im.ImageResized += (s, e) => Console.WriteLine(e.ImageName + ": " + e.OldDims + " --> " + e.NewDims); im.Resize(oldDim, newDim); }
private static void MakeTransparent(string folderPath, string hexColor) { var im = new ImageManipulation { WorkingPath = folderPath }; im.MadeTransparent += (s, e) => Console.WriteLine(e.OldImageName + " --> " + e.NewImageName); im.MakeTransparent(hexColor); }