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

New Post: How to generate images with formatted text

$
0
0
Dim img As ImageMagick.MagickImage = New MagickImage(path)
img.Draw(New DrawableFont("Comic Sans MS", FontStyleType.Italic, FontWeight.Weight400, FontStretch.Normal))
img.Draw(New DrawableFillColor(New MagickColor(10, 10, 10)))
img.Draw(New DrawableText(50, 15, "Shafi"))
img.Write(outputFilename)

The code above is generating image, but text is drawing as plain text only, the DrawableFont and DrawableFillColor is not at all reflecting.

Can someone help me out, I want to generate formatted text based Images.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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