Example #1
0
        public static void MakeRemoteSquareImage(string url, string newFileName, int newSize)
        {
            Stream remoteImage = Thumbnail.GetRemoteImage(url);

            if (remoteImage == null)
            {
                return;
            }
            Image image = Image.FromStream(remoteImage);

            remoteImage.Close();
            Thumbnail.MakeSquareImage(image, newFileName, newSize);
        }
Example #2
0
 public static void MakeSquareImage(string fileName, string newFileName, int newSize)
 {
     Thumbnail.MakeSquareImage(Image.FromFile(fileName), newFileName, newSize);
 }