0

I am able to create simple image with text, but I want to apply MS Word Art font to my text. Any Reference link or help appreciated.

here is my code to create image with Text.

Font MyFont = new Font(FontFamily, Font,FontStyle.Bold, GraphicsUnit.Point);
MyGraphics = Graphics.FromImage(bmpImage);
MyGraphics.Clear(Color.FromName(Convert.ToString(Request.QueryString["bgColor"])));
MyGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;
MyGraphics.DrawString(sImageText, MyFont,
                    new SolidBrush(Color.FromName(Convert.ToString(Request.QueryString["TextColor"]))), 0, 0);
MyGraphics.Flush();

Thanks

skaffman
  • 398,947
  • 96
  • 818
  • 769
Muhammad Akhtar
  • 51,913
  • 37
  • 138
  • 191

1 Answers1

1

Applying MS Word Art to text in images isn't supported by the .NET Framework libraries but you can apply certain effects. For examples, see Bob Powell's article.

Andrew Morton
  • 24,203
  • 9
  • 60
  • 84
Mark Cidade
  • 98,437
  • 31
  • 224
  • 236
  • thanks for your reply, if you see this thread http://forums.asp.net/p/1434707/4380294.aspx/1?Re+implement+functionality+like+quot+word+art+quot+ you will someone accomplish this – Muhammad Akhtar Apr 12 '11 at 18:29
  • the link you have provided, I am already able to apply those effects, but My requirement is apply word art effect or create images with similar text style. – Muhammad Akhtar Apr 12 '11 at 18:34
  • There are different styles—which Word Art style do you want to apply? – Mark Cidade Apr 12 '11 at 18:35
  • something like... http://cheerzone.com/Lettering/ImageGenerator.aspx?text=Akhtar%20Khan&font_family=Arial&layout_style=Point&background_style=Connected&color_style=TwoColors&color1=000000&width=1000 – Muhammad Akhtar Apr 12 '11 at 18:39
  • if you notice, this is in asp.net, this one already developed by someone and I need to create similar one. that means it is possible and must be some work around. – Muhammad Akhtar Apr 12 '11 at 18:48
  • They either use custom code or a third-party library. You can do it yourself with GraphicsPath.Warp()—check out the link. – Mark Cidade Apr 12 '11 at 23:25