最近项目需求 做了个小工具 操作EXCEL以及生成公司公章
TestOnSeal _top = new TestOnSeal(); _top.TextFont = new System.Drawing.Font("黑体", 16, FontStyle.Bold); _top.FillColor = Color.Red; //_top.ColorTOP = Color.Black; _top.Text = comname; _top.BaseString = ""; _top.ShowPath = true; _top.LetterSpace = 1; _top.SealSize = 180; _top.CharDirection = Char_Direction.Center; _top.SetIndent(20); Graphics g = this.CreateGraphics(); g.DrawImage(_top.TextOnPathBitmap(), 0, 0); _top.CharDirection = Char_Direction.ClockWise; g.DrawImage(_top.TextOnPathBitmap(), 180, 0); _top.CharDirection = Char_Direction.AntiClockWise; g.DrawImage(_top.TextOnPathBitmap(), 0, 180); _top.SetIndent(20); _top.CharDirection = Char_Direction.Center; g.DrawImage(_top.TextOnPathBitmap(), 180, 180); _top.TextOnPathBitmap().Save(System.Windows.Forms.Application.StartupPath + "/tp/" + comname + ".png", System.Drawing.Imaging.ImageFormat.Png); g.Dispose();