This project has moved. For the latest updates, please go here.

Compound Font Effects

Apr 6, 2016 at 6:18 PM
Hi

I'm just running through and trying to convert some commands to be used in Magick.net.

How is the best way to do this very simple tile texture.
http://www.imagemagick.org/Usage/fonts/
convert -size 320x100 xc:lightblue -font Candice -pointsize 72 \
           -tile pattern:checkerboard   -annotate +28+68 'Anthony' \
           font_tile.jpg
It's really the tiling I think I have an issue with. I realize that you can generate gradients & patterns in a constructor but having problem figuring out how to mask it like the example.

Anyone got an example how to do this?

Thanks
Coordinator
Apr 15, 2016 at 10:41 AM
The -tile option sets the fill pattern. The command above translates to this:
using (MagickImage image = new MagickImage(MagickColors.LightBlue, 320, 100))
{
  image.Settings.Font = "Candice";
  image.Settings.FontPointsize = 72;
  image.Settings.FillPattern = new MagickImage("pattern:checkerboard");
  image.Annotate("Anthony", new MagickGeometry(28, 68));
  image.Write("font_tile.jpg");
}