Hi all,
I am trying to create a C# console application to convert a Microsoft
Journal file to a TIFF image file.
I am using the Microsoft.Ink.DLL and the
Microsoft.Ink.JournalReader.DLL to read in the Journal file (using the
JournalReader's ReadFromStream method) allowing me to then have an XML
representation of the Journal file within an in-memory XmlDocument.
Is there any quick way for me to effectively "deserialize" the Journal
file's XML document into the various classes within the Microsoft.Ink
namespace? (ie. Microsoft.Ink.InkObject's etc.)
If this is possible, is it then possible to "render" the resulting set
of ink/image/stroke objects to (perhaps) a graphic device context
within memory, ideally using some "single-line-of-code" method that
will render the entire "document" at once ?
If I can get this far, I can then easily save the graphic device
"canvas" as an image file, however, I have a horrble feeling that I
may have to manually "decode" the various sections of the Journal
document's XML and manually convert them into the required "ink"
objects, then manually "render" each ink object.
As you can probably tell, I'm brand new to the Microsoft.Ink library
(and the whole notion of "ink", too!) and only started looking at it
yesterday.
By the way, I'm developing this on a "standard" Windows PC (ie. NOT a
TabletPC) using the TabletPC SDK 1.7.
Thanks in advance.
(Sorry for cross-posting, but I thought this question was relevant to
both newsgroups.)
Regards,
Brent.