C语言编程 - C++编程 - C#编程 - .NET编程 - JAVA编程 - VB编程 - DELPHI编程 - 汇编语言 - 数据结构 - ASP - PHP编程 - XML编程 - JSP
您现在的位置:首页--开发语言--C#编程--界面窗体--浏览文章

C#制作公章

点击:   发布日期:2007-4-19 10:10:00   进入论坛

代码:
private void button1_Click(object sender, System.EventArgs e)
  {
   Graphics g = this.CreateGraphics();
   g.Clear(Color.White);
   //g.InterpolationMode = InterpolationMode.HighQualityBicubic;
   g.CompositingQuality = CompositingQuality.HighQuality;
   g.SmoothingMode = SmoothingMode.HighQuality;
           
   int radius = 200;
   CircularTextualLayout ctl = new CircularTextualLayout();
   ctl.Radius = radius;
   Point location = new Point(50, 20);
   //ctl.CenterPoint = new Point(location.X + radius, location.Y + radius);
   ctl.TextDrawing = "方正姚体方正姚体方正姚体方正姚体";

   float arcAngle = 270;
   ctl.ArcAngle = arcAngle;
   ctl.AngleStart = -arcAngle/2 + arcAngle/2/ctl.TextDrawing.Length;
   ctl.TextFontInner = new Font("方正姚体", radius/3.2f);
   ctl.RatioX = 0.6f;
   ctl.BorderWidth = (int)(ctl.Radius / 40);
   //ctl.IsBold = false;
   ctl.Location = location;
   ctl.WordsColor = Color.FromArgb(250, Color.Red);
   ctl.BorderColor = Color.FromArgb(250, Color.Red);
   ctl.RectColor = Color.FromArgb(250, Color.Red);
   ctl.Draw(g);

   g.Dispose();
  }

参与讨论 关闭 返回顶部
>> 相关新闻
开发推荐
 
程序人生
 
数据库推荐
 
编程语言推荐
关于站点 - 联系我们 - 友情链接 - 版权隐私 - 免责声明 - BUG提交 - 网站导航 - 编程论坛 - 返回顶部

欢迎您在论坛发布各类原创作品和讨论话题,您的支持是自学编程网前进的基石    
copyright © 2005-2007 www.zxbc.cn online services. all rights reserved. Record No.:HN ICP No.07001293