Saving Ink Color for Reloading
When I save my Ink, I can't find an option to save the color of the ink as well. When I load it it just shows up in the default color (black). Is there a way to enable the saving of color? I have tried saving as a GIF in the Ink.Save( PersistanceFormat ) function, but that doesn't work either.
Any Ideas?
[316 byte] By [
DJS330] at [2008-2-15]
I couldn't figure out how to do it using the natural Microsoft.Ink functionality. This is also a problem for storing the pen width and height. I am guessing you have to create your own Extended property for each stroke, and when reading the stroke back in to be drawn, read the Extended properties and set the appropriate DrawingAttributes. That is the only way I can think of.
Hi DJS330,
saving and re-loading ink with all its DrawingAttributes (Color, Width, etc.) works fine on my computer.
Are you seeing this problem on XP or Vista? Can you post a code snippet of how you save and load the ink?
Thanks, Stefan Wick