Apply advanced string clip path to an image #76
Unanswered
nunogomes360
asked this question in
Q&A
Replies: 2 comments 2 replies
-
You need the ImageSharp.Drawing package for this.
Here is a (somewhat) related example: |
Beta Was this translation helpful? Give feedback.
2 replies
-
This sounds similar to #67 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to apply an advanced clip-path to an image. Similar to what's possible to do with a SVG:
<defs>
<clipPath id="clipPath">
<path d="M10,10 q60,60 100,0 q50,50 50,50 l40,0 l-40,40 l-100,-20"/>
</clipPath>
</defs>
<rect x="5" y="5" width="190" height="90" style="stroke: none; fill:#00ff00; clip-path: url(#clipPath);"/>
The simple way would be to use the string "M10,10 q60,60 100,0 q50,50 50,50 l40,0 l-40,40 l-100,-20".
Another example: https://www.sarasoueidan.com/demos/css-svg-clipping/html-img-clipped-with-css-svg-clippath/
Beta Was this translation helpful? Give feedback.
All reactions