ImageToGraph() private method

private ImageToGraph ( Bitmap b ) : String
b System.Drawing.Bitmap
return String
Esempio n. 1
0
        private void vetorizarPixelArtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Vectorize grafo = new Vectorize();


            String c = "";

            c = grafo.ImageToGraph(OriImg);
            c = grafo.SolveAmbiguities();
            c = grafo.ReshapePixelCell();
            c = grafo.DrawNewGraphEdges();
            c = grafo.CreateNewCurves();
            //System.Diagnostics.Process.Start(grafo.ImageToGraph(OriImg));
            //System.Diagnostics.Process.Start(grafo.SolveAmbiguities());
            //System.Diagnostics.Process.Start(grafo.ReshapePixelCell());
            //System.Diagnostics.Process.Start(grafo.DrawNewGraphEdges());
            //System.Diagnostics.Process.Start(grafo.DrawNewCurves());
            System.Diagnostics.Process.Start(grafo.CreateShapes());
            grafo = null;
        }
Esempio n. 2
0
        private void vetorizarPixelArtToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Vectorize grafo = new Vectorize();

            String c = "";
            c = grafo.ImageToGraph(OriImg);
            c = grafo.SolveAmbiguities();
            c = grafo.ReshapePixelCell();
            c = grafo.DrawNewGraphEdges();
            c = grafo.CreateNewCurves();
            //System.Diagnostics.Process.Start(grafo.ImageToGraph(OriImg));
            //System.Diagnostics.Process.Start(grafo.SolveAmbiguities());
            //System.Diagnostics.Process.Start(grafo.ReshapePixelCell());
            //System.Diagnostics.Process.Start(grafo.DrawNewGraphEdges());
            //System.Diagnostics.Process.Start(grafo.DrawNewCurves());
            System.Diagnostics.Process.Start(grafo.CreateShapes());
            grafo = null;
        }