• 6回复贴,共1

C#怎么调用krapno的批处

只看楼主收藏回复

C#怎么调用krapno的批处理文件的,我要在上传图片的时候调用bat文件生成全景图。有没有大佬给下提示,小弟万分感激。


来自iPhone客户端1楼2017-06-29 20:28回复
    System.Diagnostics.Process p = new System.Diagnostics.Process();
    p.StartInfo = new System.Diagnostics.ProcessStartInfo(krpanoPath, string.Format("makepano -config=templates/vtour-vr.config {0} ", string.Join(" ", imgs)));
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.RedirectStandardInput = true;
    p.Start();
    p.StandardInput.WriteLineAsync("y");
    p.StandardInput.AutoFlush = true;


    3楼2017-07-25 10:57
    回复
      你会设置相册的中文标题吗


      4楼2017-07-25 10:58
      收起回复
        XmlDocument xdoc = new XmlDocument();
        xdoc.Load("/vtour/tour.xml");
        XmlElement xe = (XmlElement)xdoc.SelectSingleNode("krpano")
        xe.SetAttribute("title", n
        xdoc.Save("vtour/tour.xml");


        6楼2017-07-26 14:45
        回复
          var krpano = document.getElementById("krpanoSWFObject");
          krpano.set(krpano.title,name);
          应该是这样吧js,这玩意英文看不懂,中文要会员,老贵了,资料又少,神tm烦着东西


          7楼2017-07-26 14:55
          回复