public GeometryGraphicsPath CreatePixelatedPath() { using (GeometryGraphicsPath path = CreatePath()) //GeometryGraphicsPath path = GetPathReadOnly(); { using (GeometryRegion region = new GeometryRegion(path)) { GeometryGraphicsPath pixellatedPath = GeometryGraphicsPath.FromRegion(region); return(pixellatedPath); } } }