科学网

 找回密码
  注册
[转载]C#做绘图软件时怎样保存PictureBox中用graphics画的图
马飞 2020-11-20 10:03
C#做绘图软件时怎样保存PictureBox中用graphics画的图 Graphics.FromImage(pictureBox1.Image).DrawEllipse(new Pen(Brushes.Red), e.X, e.Y, 1, 1); pictureBox1.Invalidate(); 或者 Graphics g = Graphics.FromImage(pictureBox1.Image); ...
个人分类: c#编程|3528 次阅读|没有评论
c#-sql-多线程写入数据库access
马飞 2020-7-30 16:48
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.OleDb; using System.Data.Odbc; using iView.Driver.Dh; ...
个人分类: c#编程|3321 次阅读|没有评论
C# WinForm编程常见技巧汇总-视频播放长度获取
马飞 2015-6-10 12:45
******** axWindowsMediaPlayer1 结果很可能为0 ******** private void button9_Click(object sender, EventArgs e) { axWindowsMediaPlayer1.URL = 2.mp4; frameNum = ...
个人分类: c#编程|3290 次阅读|没有评论
动态创建bmp模板,pictureBox1在image上画图并保存
马飞 2014-5-22 12:30
/////////////////////////动态创建bmp模板,后将 pictureBox1背景颜色设置为白色 ////////////////////////////////////////////////// Bitmap bmpT = new Bitmap(dtW * (nodeTotalNum - subNodeNum), 400); this.pictureBox1.Image = bmpT; this.pictureBox1.Refresh(); //////////////////////// 在 image上 ...
个人分类: c#编程|3048 次阅读|没有评论

本页有 6 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-24 07:34

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部