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

Caption text color and effects

Jan 24, 2014 at 6:11 PM
I've looked at code sample in other threads and see code similar to the below
Dim image = New MagickImage(MagickColor.Transparent, width, height)

image.FillColor = New MagickColor("#FFFFFF")

image.Read("caption:This is a test")
but at my end the text always turns out black.

I need to make the caption text white with a black border -- the effect being somewhat similar to what you have in the sample http://www.imagemagick.org/Usage/text/caption_height.gif (with different colors instead of blue) but am not sure how to get that effect using Magick.Net

Thanks for your help
Coordinator
Jan 24, 2014 at 7:11 PM
That effect is done by the Gecko font. You need to install and specify that font to get that effect.
Jan 24, 2014 at 7:34 PM
ok - thanks.

But for some reason using the standard fonts and no effects the caption color is always black even though I set the font color to white as in the code sample above
Coordinator
Jan 24, 2014 at 7:59 PM
Edited Jan 24, 2014 at 7:59 PM
I completely missed that. I was just focusing on the effect. I will look into that.
Jan 24, 2014 at 8:10 PM

Not a problem at all – really appreciate your prompt responses.

Coordinator
Jan 24, 2014 at 8:45 PM
Edited Jan 24, 2014 at 9:13 PM
I figured out why it doesn't work. I need to set a 'special' ImageMagick option to make this work with the 'caption:' reader. This will be fixed in the next release of Magick.NET. I will try to publish that this weekend.
Coordinator
Jan 24, 2014 at 8:45 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jan 24, 2014 at 10:26 PM

Thank you