我正在尝试读取图像的像素并将其填入二维数组中;但是,我不知道如何声明全局数组?有什么帮助吗?
答案 0 :(得分:2)
//picbin is binary image data fetched from db
ImageConverter ic = new ImageConverter();
System.Drawing.Image img = (System.Drawing.Image)ic.ConvertFrom(picbin);
img.Save(HttpContext.Current.Server.MapPath(imagePath + picture_id + ".Jpeg"), System.Drawing.Imaging.ImageFormat.Jpeg);// imagePath ="Images/"