Esempio n. 1
0
        /// <summary>
        /// Load Bitmap from URL.
        /// </summary>
        public static Image LoadBitmap(string url, CookieContainer cookieContainer = null)
        {
            var bytes  = StiBytesFromURL.Load(url, cookieContainer);
            var stream = new MemoryStream(bytes);

            return(new Bitmap(stream));
        }
Esempio n. 2
0
        /// <summary>
        /// Load Metafile from URL.
        /// </summary>
        public static Image LoadMetafile(string url, CookieContainer cookieContainer = null)
        {
            var bytes = StiBytesFromURL.Load(url, cookieContainer);

            return(StiMetafileConverter.BytesToMetafile(bytes));
        }