The following method should provide you with a flipped PathGeometry. Just put it anywhere in your class, and pass it the PathGeometry you want to flip.
public static PathGeometry FlipPG(PathGeometry src)
{
PathGeometry dst = src.Clone();
ScaleTransform flipTrans = new ScaleTransform()
{
ScaleX = -1,
CenterX = 0.5,
CenterY = 0.5
};
dst.Transform = flipTrans;
return dst;
}
This is done in two steps, according to what you need to do:
- Create a copy of the original PathGeometry
- Flip it by applying a transform
Hope it helps. Regards!!
AFP