如何在Web应用程序中打开墨迹序列化格式(.Isf)文件? [英] How Do I Open Ink Serialized Format (.Isf) File In Web Application?

查看:104
本文介绍了如何在Web应用程序中打开墨迹序列化格式(.Isf)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如何在网络应用程序中打开墨水序列化格式(ISF)。





i使用这篇文章 https://msdn.microsoft.com/en-us/library/ms840393.aspx [ ^ ]



但不清晰:(



谢谢你

Hi,

How i can open ink serialized format (ISF) in web application.


i used this article https://msdn.microsoft.com/en-us/library/ms840393.aspx[^]

but not get clarity :(

Thank you

推荐答案

:)解决了....



:) Solved....

InkCollector ic = new InkCollector();
          Stream s = File.OpenRead(@"C:\Users\indhukanth\Desktop\krish\123.isf");
          Ink loadedInk = new Ink();
          byte[] isfBytes = new byte[s.Length];
          s.Read(isfBytes, 0, (int)s.Length);
          loadedInk.Load(isfBytes);
          ic.Ink = loadedInk;
          ExtendedProperties inkProperties = ic.Ink.ExtendedProperties;
          byte[] fortifiedGif = null;
          string nameBase = @"C:\Users\indhukanth\Desktop\krish\";
          using (FileStream gifFile = File.OpenWrite(nameBase + "jib.gif"))
          {
              fortifiedGif = ic.Ink.Save(PersistenceFormat.Gif);
              gifFile.Write(fortifiedGif, 0, fortifiedGif.Length);
          }


这篇关于如何在Web应用程序中打开墨迹序列化格式(.Isf)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆