Skip to content

'IImageProcessingContext' does not contain a definition for 'ApplyScalingWaterMark' #1281

Answered by tocsoft
SibeeshVenu asked this question in Q&A
Discussion options

You must be logged in to vote

This example (which you already linked to) https://github.com/SixLabors/Samples/blob/master/ImageSharp/DrawWaterMarkOnImage/Program.cs works fine on the latest release however you need to include the entire sample into your code base not just the call site as the sample you linked to is specifically demonstrating how to add a custom processing extension that applies the scaling text watermark to an image.

So in conclusion you need to include these lines from the sample https://github.com/SixLabors/Samples/blob/32557bf359066c07358572e7147e638608522503/ImageSharp/DrawWaterMarkOnImage/Program.cs#L43-L159 into your project to get it to actually output.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@SibeeshVenu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SibeeshVenu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1281 on July 18, 2020 10:51.