我找了个QQ截图源码 功能实现了 有个功能想改下 源码中
private Form2 main;
// 双击完成截图
private void Form7_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (this.area != Rectangle.Empty)
{
Bitmap bitmap = this.GetPhoto();
main.BackgroundImage = bitmap;
api.ReleaseCursor();
this.Dispose();
}
}
这里是把截取后的图片 设置为Form2 的背景图片
如果我想把 将截取后的图片bitmap 添加到Form2窗体下的richtextbox1 里面,该怎么实现
private Form2 main;
// 双击完成截图
private void Form7_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (this.area != Rectangle.Empty)
{
Bitmap bitmap = this.GetPhoto();
main.BackgroundImage = bitmap;
api.ReleaseCursor();
this.Dispose();
}
}
这里是把截取后的图片 设置为Form2 的背景图片
如果我想把 将截取后的图片bitmap 添加到Form2窗体下的richtextbox1 里面,该怎么实现
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货