none
How do I Programatically Save MSAGL file as .msagl format? RRS feed

  • Question

  • hi,

    In MSAGL Toolbar there is save for .msagl format..... BUT i need to do in Programatically use my own button as "SAVE"

    There is code for save in Bitmap file format


    Microsoft.Msagl.GraphViewerGdi.GraphRenderer renderer = new Microsoft.Msagl.GraphViewerGdi.GraphRenderer(graph);
    renderer.CalculateLayout();
    int width = 50;
    Bitmap bitmap = new Bitmap(width, (int)(graph.Height * (width / graph.Width)), PixelFormat.Format32bppPArgb);
    renderer.Render(bitmap);
    bitmap.Save("test.png");


    likewise

    i tried in program to save .msagl format but i have no idea....

    it is possible to save in .msagl format????

    There is Code for save MSAGL graph in .msagl file format ?????????????

    if possible please give sample code for that.......

    Regards,

    Aravinda R

    Wednesday, January 27, 2010 2:06 PM

Answers