Skip to content

Text watermark background color #1649

Answered by JimBobSquarePants
dobras asked this question in Q&A
Discussion options

You must be logged in to vote
processingContext.BackgroundColor(Color.Black);
return processingContext.DrawText(options, text, scaledFont, color, bottomRight);

You're asking context here to set the background color of the image not of the rectangle where the text shall be drawn.
You should draw a rectangle at the desired location, then draw the text.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@antonfirsov
Comment options

@dobras
Comment options

@dobras
Comment options

@antonfirsov
Comment options

@dobras
Comment options

Answer selected by dobras
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants