Repository navigation
'IImageProcessingContext' does not contain a definition for 'ApplyScalingWaterMark' #1281
DescriptionI am running the latest version and I am getting the error as preceding.
When I run the code below. Already added the using statements. What am I missing here? Is this an issue with latest version? |
Replies: 6 comments 1 reply
|
There’s no such method. Where did you get the name from? |
|
Seems to be a custom extension method in this issue: #484? |
|
Thanks @dlemstra It'll require updating to Not a bug though @SibeeshVenu , this should have been added to the Help section of our Discussions forum. I'll transfer it now. |
|
If this is not how we can apply a watermark with a word-wrap feature, could you please show me how to do this with latest version? Do you have any docs for this? |
|
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. |
|
Thanks a lot. I got it working! |
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.