2010年12月23日

摘要: //加边框 try { Bitmap Backbmp = new Bitmap(@"" + Path); float w = (float)(Backbmp.Width * 0.2); using (Graphics g = Graphics.FromImage(Backbmp)) { using (Brush brush = new SolidBrush(Color.FromArgb(0, 156, 255))) { using (Pen pen = new Pen(brush, w)) { pen.DashStyle = DashStyle.Custom; g.Draw 阅读全文

posted @ 2010-12-23 15:24 严武 阅读(559) 评论(0) 推荐(0) 编辑

摘要: // 该调用是 Windows.Forms 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitComponent 调用后添加任何初始化 this.SetStyle(ControlStyles.AllPaintingInWmPaint,true); //开启双缓冲this.SetStyle(ControlStyles.DoubleBuffer,true); this.SetStyle(ControlStyles.UserPaint,true); this.SetStyle(ControlStyles.ResizeRedraw,true... 阅读全文

posted @ 2010-12-23 13:19 严武 阅读(2690) 评论(0) 推荐(0) 编辑

摘要: #region 圆角界面 public void SetWindowRegion() { System.Drawing.Drawing2D.GraphicsPath FormPath; FormPath = new System.Drawing.Drawing2D.GraphicsPath(); Rectangle rect = new Rectangle(0, 0, this.Width, this.Height);//this.Left-10,this.Top-10,this.Width-10,this.Height-10); FormPath = GetRoundedRectPath(r 阅读全文

posted @ 2010-12-23 12:38 严武 阅读(528) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace test{ public partial class Form3 : Form { public Form3() { InitializeComponen 阅读全文

posted @ 2010-12-23 12:33 严武 阅读(3069) 评论(1) 推荐(0) 编辑


Copyright © 2024 严武
Powered by .NET 8.0 on Kubernetes