国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > C# > 正文

C#制作公章

2023-05-14 16:26:31
字體:
來源:轉載
供稿:網友

本文借助C#的繪圖功能講解了制作公章的方法:

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();
        }

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 永清县| 宁蒗| 洪湖市| 札达县| 岳西县| 平远县| 绥滨县| 徐闻县| 乌什县| 万源市| 祁连县| 南澳县| 界首市| 石柱| 洛川县| 涿州市| 邢台市| 乐陵市| 新巴尔虎左旗| 板桥市| 米脂县| 姜堰市| 鹿邑县| 合作市| 皮山县| 南宫市| 敦化市| 建瓯市| 奉贤区| 彭泽县| 吴江市| 辽阳市| 右玉县| 巴林左旗| 赤峰市| 巧家县| 肥西县| 田林县| 休宁县| 恩平市| 彰化市|