Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static GraphicsPath GetGraphicsPath(GraphicsPathData gpd)
 {
     return(new GraphicsPath(gpd.points, gpd.types, gpd.fillMode));
 }