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; }
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); }