I can't seem to assign it a percentage.
I am trying to create a text watermark over an image.
Your code works in a drawing example you have.
I would like to make the font opaque so the viewer can still see the photo, but not use it. Intellisense gives me .FillOpacity(percentage) and .StrokeOpactity(percentage) but it won't take a number for percentage.
Also, how would I move the text to the middle of the image? It is currently centered but up at the top.
I am trying to create a text watermark over an image.
Your code works in a drawing example you have.
I would like to make the font opaque so the viewer can still see the photo, but not use it. Intellisense gives me .FillOpacity(percentage) and .StrokeOpactity(percentage) but it won't take a number for percentage.
Also, how would I move the text to the middle of the image? It is currently centered but up at the top.
new Drawables()
// Draw text on the image
.FontPointSize(72)
.FillOpacity()
.Font("Comic Sans")
.StrokeColor(new MagickColor("yellow"))
.StrokeOpacity()
.FillColor(MagickColors.Orange)
.TextAlignment(TextAlignment.Center)
.Text(256, 64, "Magick.NET")
// Add an ellipse
.StrokeColor(new MagickColor(0, Quantum.Max, 0))
.FillColor(MagickColors.SaddleBrown)
.Ellipse(256, 96, 192, 8, 0, 360)
.Draw(image);