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

New Post: Generate an image based on character and font

$
0
0
You should use the drawable classes to draw text on an image:
using (MagickImage image = new MagickImage(Color.Black, 100, 100))
{
  DrawableFont font = new DrawableFont("PMingLiu");
  DrawablePointSize pointSize = new DrawablePointSize(20);
  DrawableStrokeColor strokeColor = new DrawableStrokeColor(Color.White);
  DrawableText text = new DrawableText("YOUR TEXT");
 
  image.Draw(font, pointSize, strokeColor, text);
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>