Inner mold

By default, adding Stroke to Shape in WPF / WinRT XAML creates a path that is centered around the edges, which means half of the path is outside the shape. But I need to create a form with a stroke and without a fill that has the same silhouette as the form with and without a stroke. Is there an easy way to change the course so that the entire contour is inside?

I can create an OpacityMask that covers an inverted form, but OpacityMasks are not supported in WinRT XAML. I could also create a smaller shape by buffering inside the polygon (Polygon inflate / deflate (offset, buffering) algorithm ), but I was hoping for a simpler solution, for example. simple property to change the stroke to "inside".

+4
source share
1 answer

I really tried to find the answer to this question. Over and over, each attempt has some limitations. I am afraid that the answer to this question is impossible - not with dynamic vectors. You can always create an image to simulate. But that sucks.

+1
source

All Articles