c#参数无效
publicpartialclassfrmPicGray:Form{Bitmap[]bmp;BitmaptempBmp;intn=0;publicfrmPicGray()...
public partial class frmPicGray : Form
{
Bitmap[] bmp;
Bitmap tempBmp;
int n = 0;
public frmPicGray()
{
InitializeComponent();
}
private void frmPicGray_Load(object sender, EventArgs e)
{
bmp = new Bitmap[4];
string picPath;
for (int i = 0; i < 4; i++)
{
picPath = i.ToString() + ".jpg";
bmp[i] = new Bitmap(picPath);
}
pbPicNav.Image = bmp[0];
tempBmp = (Bitmap)pbPicNav.Image;
}
(bmp[i] = new Bitmap(picPath);)
显示异常,参数无效!求解释 展开
{
Bitmap[] bmp;
Bitmap tempBmp;
int n = 0;
public frmPicGray()
{
InitializeComponent();
}
private void frmPicGray_Load(object sender, EventArgs e)
{
bmp = new Bitmap[4];
string picPath;
for (int i = 0; i < 4; i++)
{
picPath = i.ToString() + ".jpg";
bmp[i] = new Bitmap(picPath);
}
pbPicNav.Image = bmp[0];
tempBmp = (Bitmap)pbPicNav.Image;
}
(bmp[i] = new Bitmap(picPath);)
显示异常,参数无效!求解释 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询