コード例 #1
0
ファイル: Images.cs プロジェクト: nhtera/Home
 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);
        }