picturebox控件中放置图片实现图片缩放功能,但是当放大到一定程度时会报错,说溢出,请问怎么解决?放大功能代码:
private void button2_Click(object sender, EventArgs e)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width * 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height *1.2);
}c#缩放溢出
private void button2_Click(object sender, EventArgs e)
{
pictureBox1.Width = Convert.ToInt32(pictureBox1.Width * 1.2);
pictureBox1.Height = Convert.ToInt32(pictureBox1.Height *1.2);
}c#缩放溢出
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货