在c#中用GDI用鼠标在picturebox中画图后,怎样把所画的鼠标轨迹图以图片文件来保存
这样不行啊privatevoidbtnSave_Click(objectsender,EventArgse){Bitmapb2=newBitmap(pictureBox1...
这样不行啊
private void btnSave_Click(object sender, EventArgs e)
{
Bitmap b2 = new Bitmap(pictureBox1.Image);
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.ShowDialog();
string str = saveFileDialog1.FileName;
b2.Save(str);
} 展开
private void btnSave_Click(object sender, EventArgs e)
{
Bitmap b2 = new Bitmap(pictureBox1.Image);
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.ShowDialog();
string str = saveFileDialog1.FileName;
b2.Save(str);
} 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询