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".
source share