private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
if (curBitmap != null)
{
g.DrawImage(curBitmap, 160, 20, curBitmap.Width, curBitmap.Height);
}
}
第六行出现错误,错误提示为:位图区域已被锁定。
如果在使用GetHdc方法后使用Graphics对象,请调用ReleaseHdc方法。请问我应该如何做?
{
Graphics g = e.Graphics;
if (curBitmap != null)
{
g.DrawImage(curBitmap, 160, 20, curBitmap.Width, curBitmap.Height);
}
}
第六行出现错误,错误提示为:位图区域已被锁定。
如果在使用GetHdc方法后使用Graphics对象,请调用ReleaseHdc方法。请问我应该如何做?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货