摘要:
using (Graphics g = pictureBox1.CreateGraphics()) {//画板 Rectangle sourceRec = new Rectangle(e.X - 10, e.Y - 10, 10, ... 阅读全文
摘要:
/* * 黄 * 蓝 红 * 绿 */ private void btnStart_Click(object sender, EventArgs e) { ... 阅读全文
摘要:
#region 设置分辨率 using (Graphics g = pictureBox2.CreateGraphics()) { g.Clear(pictureBox2.BackColor);//清空 ... 阅读全文
摘要:
/*贝塞尔样条是由四个点指定的曲线:两个端点(p1 和 p2)和两个控制点(c1 和 c2)。曲线开始于 p1,结束于 p2。 * 该曲线不经过控制点,但是控制点的作用像磁铁一样,在某些方向上拉拽曲线并影响曲线弯曲的方式。 该曲线始于 p1 并向控制点... 阅读全文
摘要:
using (Graphics graphics = this.CreateGraphics()) {// graphics.Clear(Color.White); Pen pen = new Pen(Color.Red, 2); ... 阅读全文
摘要:
using (Graphics graphics = this.CreateGraphics()) { graphics.Clear(Color.White); Point[] points = {//顺时针点坐标... 阅读全文
摘要:
using (Graphics g = this.CreateGraphics()) {//画板 g.FillRectangle(Brushes.White, this.ClientRectangle);//画板颜色 ... 阅读全文
摘要:
using (Pen mypen = new Pen(Color.Black, 6)) { mypen.StartCap = LineCap.DiamondAnchor;//设置起始箭头 mypen.EndCap = ... 阅读全文
摘要:
Bitmap bitmap = new Bitmap("1.jpg"); TextureBrush b = new TextureBrush(bitmap);//指定纹理图片 Pen p = new Pen(b, 30);//创建画笔 ... 阅读全文
摘要:
/// /// The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command... 阅读全文
摘要:
/// /// The waveOutGetNumDevs function retrieves the number of waveform-audio output devices present in the system. /// /// Ret... 阅读全文
摘要:
WshShell shell = new WshShell();//建立对象 //生成快捷方式文件,指定路径及文件名 IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut( Environme... 阅读全文
摘要:
public const int WM_KEYDOWN = 0x0100;//按键消息 public const int WM_SYSKEYDOWN = 0x0104;//快捷键或系统命令键的消息 protected override bool ProcessCmdKe... 阅读全文
摘要:
/// /// Defines a system-wide hot key. /// /// A handle to the window that will receive WM_HOTKEY messages generated by the hot... 阅读全文
摘要:
/// /// Adds the specified window to the chain of clipboard viewers. Clipboard viewer windows receive a WM_DRAWCLIPBOARD message whenever the... 阅读全文