예제 #1
0
        // Token: 0x060000B9 RID: 185 RVA: 0x0000A1B4 File Offset: 0x000083B4
        public static void MakeRemoteThumbnailImage(string url, string newFileName, int maxWidth, int maxHeight)
        {
            Stream remoteImage = FPThumb.GetRemoteImage(url);

            if (remoteImage != null)
            {
                Image original = Image.FromStream(remoteImage);
                remoteImage.Close();
                FPThumb.MakeThumbnailImage(original, newFileName, maxWidth, maxHeight);
            }
        }
예제 #2
0
        // Token: 0x060000B4 RID: 180 RVA: 0x00009E04 File Offset: 0x00008004
        public static void MakeRemoteSquareImage(string url, string newFileName, int newSize)
        {
            Stream remoteImage = FPThumb.GetRemoteImage(url);

            if (remoteImage != null)
            {
                Image image = Image.FromStream(remoteImage);
                remoteImage.Close();
                FPThumb.MakeSquareImage(image, newFileName, newSize);
            }
        }