Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

:) Solved....

C#
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);
          }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900