Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }