Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Setting Font Style with Captions or Lables

$
0
0
The following will work in the next version of Magick.NET if the font supports bold/italic:
using (MagickImage img = new MagickImage())
{
    img.FontPointsize = 50;
    img.FontStyle = FontStyleType.Italic;
    img.FontWeight = FontWeight.Bold;
    img.FillColor = new MagickColor("purple");
    img.Read("label:Magick.NET");
    img.Write("test.png");
}
I will try to publish a new release this weekend.

Viewing all articles
Browse latest Browse all 3693

Trending Articles