How to trim text in Win2D using geometry

307 views Asked by At

I know Win2D allows you to draw text within a specific rectangle and you can set it so that text not within that rectangle is clipped so that it isn't drawn.

I was wondering if it would be possible to do this with not just a rectangle but any Geometry (which may include curved lines)

What I get with rectangular clipping:

enter image description here

What I want (clipping by the white rounded rectangle with the curved bottom):

enter image description here

1

There are 1 answers

0
Damyan On