public static System.IO.Stream Serialize(GraphicsPathData gpd) { var ms = new System.IO.MemoryStream(); var bf = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter(); bf.Serialize(ms, gpd); ms.Flush(); return(ms); }
public static GraphicsPath GetGraphicsPath(GraphicsPathData gpd) { return(new GraphicsPath(gpd.points, gpd.types, gpd.fillMode)); }