GDI+中发生一般性错误 (求解) 30
protectedvoidbtn_Image_Click(objectsender,EventArgse){intimageWidth=Int32.Parse(txt_w...
protected void btn_Image_Click(object sender, EventArgs e)
{
int imageWidth = Int32.Parse(txt_width.Text);
int imageHeight = Int32.Parse(txt_height.Text);
int cutTop = Int32.Parse(txt_top.Text);
int cutLeft = Int32.Parse(txt_left.Text);
int dropWidth = Int32.Parse(txt_DropWidth.Text);
int dropHeight = Int32.Parse(txt_DropHeight.Text);
string filename =CutPhotoHelp.SaveCutPic(Server.MapPath(ImageIcon.ImageUrl), Server.MapPath(savepath), 0, 0, dropWidth,
dropHeight, cutLeft, cutTop, imageWidth, imageHeight);
this.imgphoto.ImageUrl = savepath + filename;
Page.ClientScript.RegisterStartupScript(typeof(UpLoadUserPhoto), "step3", "<script type='text/javascript'>Step3();</script>");
}
处理图片的时候报错的.GDI一般性错误. Page.ClientScript.RegisterStartupScript(typeof(UpLoadUserPhoto), "step3", "<script type='text/javascript'>Step3();</script>"); 展开
{
int imageWidth = Int32.Parse(txt_width.Text);
int imageHeight = Int32.Parse(txt_height.Text);
int cutTop = Int32.Parse(txt_top.Text);
int cutLeft = Int32.Parse(txt_left.Text);
int dropWidth = Int32.Parse(txt_DropWidth.Text);
int dropHeight = Int32.Parse(txt_DropHeight.Text);
string filename =CutPhotoHelp.SaveCutPic(Server.MapPath(ImageIcon.ImageUrl), Server.MapPath(savepath), 0, 0, dropWidth,
dropHeight, cutLeft, cutTop, imageWidth, imageHeight);
this.imgphoto.ImageUrl = savepath + filename;
Page.ClientScript.RegisterStartupScript(typeof(UpLoadUserPhoto), "step3", "<script type='text/javascript'>Step3();</script>");
}
处理图片的时候报错的.GDI一般性错误. Page.ClientScript.RegisterStartupScript(typeof(UpLoadUserPhoto), "step3", "<script type='text/javascript'>Step3();</script>"); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询