如何在java中声明一个2d数组的调用?

时间:2016-04-20 05:07:43

标签: java arrays swing global

我正在尝试读取图像的像素并将其填入二维数组中;但是,我不知道如何声明全局数组?有什么帮助吗?

1 个答案:

答案 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/"