Пример #1
0
 public structImage Load(string path, string filename)
 {
     Image image = new Image(File.OpenRead(R.Server.MapPath(path + filename)));
     structImage newImg = new structImage();
     newImg.bitmap = image;
     newImg.filename = filename;
     newImg.path = path;
     newImg.width = image.PixelWidth;
     newImg.height = image.PixelHeight;
     return newImg;
 }
Пример #2
0
        public structImage Load(string path, string filename)
        {
            Image       image  = new Image(File.OpenRead(R.Server.MapPath(path + filename)));
            structImage newImg = new structImage();

            newImg.bitmap   = image;
            newImg.filename = filename;
            newImg.path     = path;
            newImg.width    = image.PixelWidth;
            newImg.height   = image.PixelHeight;
            return(newImg);
        }