public static SvgPart TransformToNew(SvgPart originalSvgVx, PixelFarm.CpuBlit.VertexProcessing.Affine tx) { SvgPart newSx = new SvgPart(originalSvgVx.Kind); if (originalSvgVx._vxs != null) { VertexStore vxs = new VertexStore(); tx.TransformToVxs(originalSvgVx._vxs, vxs); newSx._vxs = vxs; } if (originalSvgVx.HasFillColor) { newSx._fillColor = originalSvgVx._fillColor; } if (originalSvgVx.HasStrokeColor) { newSx.StrokeColor = originalSvgVx.StrokeColor; } if (originalSvgVx.HasStrokeWidth) { newSx.StrokeWidth = originalSvgVx.StrokeWidth; } return(newSx); }
public static void TransformToVertexSnap(this Affine affine, VertexStore src, VertexStore output) { affine.TransformToVxs(src, output); }