c#windows 应用程序picturebox形状怎样变成圆形
2012-01-05 09:23
274 查看
using System.Drawing.Drawing2D;
private void button1_Click(object sender, EventArgs e)
{
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(pictureBox1.ClientRectangle);
Region region = new Region(gp);
pictureBox1.Region = region;
pictureBox2.Region=region;
pictureBox3.Region=region;
gp.Dispose();
region.Dispose();
}
private void button1_Click(object sender, EventArgs e)
{
GraphicsPath gp = new GraphicsPath();
gp.AddEllipse(pictureBox1.ClientRectangle);
Region region = new Region(gp);
pictureBox1.Region = region;
pictureBox2.Region=region;
pictureBox3.Region=region;
gp.Dispose();
region.Dispose();
}
相关文章推荐
- C#的WINDOWS应用程序(FORM)怎样接收命令行调用和参数
- C#编写C/S端代码,Windows应用程序 --- 初接触(二)
- C# Windows - SDI和MDI应用程序
- C#编写Windows应用程序的一般过程
- C#演练—Windows应用程序—创建主-从windows窗体
- Qt4怎样设置应用程序的图标-windows平台
- 用C#设计Windows应用程序模板
- C#编写Windows桌面应用程序在窗体上滚动字幕
- C#编写最小化到系统托盘的Windows应用程序
- C# 修改注册表 达到 Windows Services 启动 窗体应用程序
- JavaScript与C# Windows应用程序交互方法
- wince应用程序(实现 获取存储设备的大小、实现 WINCE 系统重新启动、隐藏/显示 Windows 任务栏等等)【C#】
- 深入浅出C#2008从入门到提高Step By Step(五)Windows应用程序常用控件类(4)-CheckBox
- C#.NET 2005 Windows应用程序之界面美化
- 用C#开发第一个WINDOWS应用程序
- Qt4怎样设置应用程序的图标-windows平台
- C#学习笔记(二十):Windows应用程序安装部署概念
- C#怎样调用外部应用程序?
- C#编写Windows桌面应用程序删除ArrayList里面的元素
- C#学习笔记四 Windows窗体应用程序