• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
wjshan0808

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
2015年1月20日
放大镜
摘要: using (Graphics g = pictureBox1.CreateGraphics()) {//画板 Rectangle sourceRec = new Rectangle(e.X - 10, e.Y - 10, 10, ... 阅读全文
posted @ 2015-01-20 16:44 wjshan0808 阅读(118) 评论(0) 推荐(0)
网线帘幕动画
摘要: /* * 黄 * 蓝 红 * 绿 */ private void btnStart_Click(object sender, EventArgs e) { ... 阅读全文
posted @ 2015-01-20 16:21 wjshan0808 阅读(270) 评论(0) 推荐(0)
图片缩放/旋转/平移/设置分辨率
摘要: #region 设置分辨率 using (Graphics g = pictureBox2.CreateGraphics()) { g.Clear(pictureBox2.BackColor);//清空 ... 阅读全文
posted @ 2015-01-20 15:12 wjshan0808 阅读(571) 评论(0) 推荐(0)
贝塞尔样条
摘要: /*贝塞尔样条是由四个点指定的曲线:两个端点(p1 和 p2)和两个控制点(c1 和 c2)。曲线开始于 p1,结束于 p2。 * 该曲线不经过控制点,但是控制点的作用像磁铁一样,在某些方向上拉拽曲线并影响曲线弯曲的方式。 该曲线始于 p1 并向控制点... 阅读全文
posted @ 2015-01-20 15:01 wjshan0808 阅读(316) 评论(0) 推荐(0)
线性梯度画刷
摘要: using (Graphics graphics = this.CreateGraphics()) {// graphics.Clear(Color.White); Pen pen = new Pen(Color.Red, 2); ... 阅读全文
posted @ 2015-01-20 14:25 wjshan0808 阅读(135) 评论(0) 推荐(0)
画七彩五角星
摘要: using (Graphics graphics = this.CreateGraphics()) { graphics.Clear(Color.White); Point[] points = {//顺时针点坐标... 阅读全文
posted @ 2015-01-20 14:21 wjshan0808 阅读(1883) 评论(0) 推荐(0)
画花纹图案
摘要: using (Graphics g = this.CreateGraphics()) {//画板 g.FillRectangle(Brushes.White, this.ClientRectangle);//画板颜色 ... 阅读全文
posted @ 2015-01-20 13:27 wjshan0808 阅读(152) 评论(0) 推荐(0)
画箭头
摘要: using (Pen mypen = new Pen(Color.Black, 6)) { mypen.StartCap = LineCap.DiamondAnchor;//设置起始箭头 mypen.EndCap = ... 阅读全文
posted @ 2015-01-20 13:19 wjshan0808 阅读(121) 评论(0) 推荐(0)
图片填充线条
摘要: Bitmap bitmap = new Bitmap("1.jpg"); TextureBrush b = new TextureBrush(bitmap);//指定纹理图片 Pen p = new Pen(b, 30);//创建画笔 ... 阅读全文
posted @ 2015-01-20 13:14 wjshan0808 阅读(151) 评论(0) 推荐(0)
打开/关闭光驱
摘要: /// /// The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command... 阅读全文
posted @ 2015-01-20 13:01 wjshan0808 阅读(256) 评论(0) 推荐(0)
检测声卡是否安装
摘要: /// /// The waveOutGetNumDevs function retrieves the number of waveform-audio output devices present in the system. /// /// Ret... 阅读全文
posted @ 2015-01-20 12:54 wjshan0808 阅读(259) 评论(0) 推荐(0)
创建快捷方式
摘要: WshShell shell = new WshShell();//建立对象 //生成快捷方式文件,指定路径及文件名 IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut( Environme... 阅读全文
posted @ 2015-01-20 10:56 wjshan0808 阅读(200) 评论(0) 推荐(0)
接收按键消息
摘要: public const int WM_KEYDOWN = 0x0100;//按键消息 public const int WM_SYSKEYDOWN = 0x0104;//快捷键或系统命令键的消息 protected override bool ProcessCmdKe... 阅读全文
posted @ 2015-01-20 10:38 wjshan0808 阅读(126) 评论(0) 推荐(0)
注册系统热键
摘要: /// /// Defines a system-wide hot key. /// /// A handle to the window that will receive WM_HOTKEY messages generated by the hot... 阅读全文
posted @ 2015-01-20 10:26 wjshan0808 阅读(159) 评论(0) 推荐(0)
获取剪贴板中的数据
摘要: /// /// Adds the specified window to the chain of clipboard viewers. Clipboard viewer windows receive a WM_DRAWCLIPBOARD message whenever the... 阅读全文
posted @ 2015-01-20 09:46 wjshan0808 阅读(523) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3