Beispiel #1
0
        public static MemoryStreamImageProxy FromFile(string fullpath)
        {
            MemoryStreamImageProxy img = new MemoryStreamImageProxy();

            img._url  = fullpath;
            img._name = System.IO.Path.GetFileName(fullpath);
            img.LoadStreamBuffer(fullpath);
            return(img);
        }
Beispiel #2
0
        public static new MemoryStreamImageProxy FromFile(string fullpath)
        {
            var img = new MemoryStreamImageProxy
            {
                _url       = fullpath,
                _name      = System.IO.Path.GetFileName(fullpath),
                _extension = System.IO.Path.GetExtension(fullpath)
            };

            img.LoadStreamBuffer(fullpath);
            return(img);
        }
Beispiel #3
0
 public static MemoryStreamImageProxy FromFile(string fullpath)
 {
   MemoryStreamImageProxy img = new MemoryStreamImageProxy();
   img._url = fullpath;
   img._name = System.IO.Path.GetFileName(fullpath);
   img.LoadStreamBuffer(fullpath);
   return img;
 }